diff options
author | waker <wakeroid@gmail.com> | 2011-01-09 22:13:26 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-01-09 22:13:26 +0100 |
commit | 4ab86e6c2a7d920f022d0d6a8bf2343929dfb0a8 (patch) | |
tree | 054f4a300b601e0f3e6b73cce77400cab969c884 /plugins/alsa | |
parent | 14b81d3a1a90fe4a3bc0ef39f5bb45125d8eebc5 (diff) |
fixed streamer recovery from failed output plugin setformat/play
Diffstat (limited to 'plugins/alsa')
-rw-r--r-- | plugins/alsa/alsa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/alsa/alsa.c b/plugins/alsa/alsa.c index 834f8b0b..7a4d12ef 100644 --- a/plugins/alsa/alsa.c +++ b/plugins/alsa/alsa.c @@ -297,6 +297,9 @@ retry: plugin.fmt.channelmask = DDB_SPEAKER_FRONT_LEFT | DDB_SPEAKER_FRONT_RIGHT | DDB_SPEAKER_BACK_LEFT | DDB_SPEAKER_BACK_RIGHT | DDB_SPEAKER_FRONT_CENTER | DDB_SPEAKER_SIDE_LEFT | DDB_SPEAKER_SIDE_RIGHT | DDB_SPEAKER_LOW_FREQUENCY; } error: + if (err < 0) { + memset (&plugin.fmt, 0, sizeof (ddb_waveformat_t)); + } if (hw_params) { snd_pcm_hw_params_free (hw_params); } |