diff options
author | foo86 <foo86@users.noreply.github.com> | 2014-03-10 00:32:00 +0400 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-11 00:21:32 +0100 |
commit | dba25e13c08a02a3734ce7891dc1652826ce15b1 (patch) | |
tree | 5f1080b36fdf16dd42e49773544b00e53e17767f /audio/reorder_ch.h | |
parent | 623b97e45a90408b91931f213f99de97092b8e76 (diff) | |
download | mpv-dba25e13c08a02a3734ce7891dc1652826ce15b1.tar.bz2 mpv-dba25e13c08a02a3734ce7891dc1652826ce15b1.tar.xz |
ao_alsa: check ALSA PCM state before pause and resume
It is possible to have ao->reset() called between ao->pause() and
ao->resume() when seeking during the pause. If the underlying PCM
supports pausing, resuming an already reset PCM will produce an error.
Avoid that by explicitly checking PCM state before calling
snd_pcm_pause().
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'audio/reorder_ch.h')
0 files changed, 0 insertions, 0 deletions