summaryrefslogtreecommitdiffstats
path: root/audio/out/push.c
diff options
context:
space:
mode:
authorfoo86 <foo86@users.noreply.github.com>2014-03-10 00:32:00 +0400
committerwm4 <wm4@nowhere>2014-03-09 22:06:06 +0100
commitd350181aafa2fb5fdb800b1cf05539b71697de44 (patch)
treeec7e3286691767ec385769945a3fcd10b16462ef /audio/out/push.c
parent5c9c81efcc52e92569e8f03762870d5d97da3c46 (diff)
downloadmpv-d350181aafa2fb5fdb800b1cf05539b71697de44.tar.bz2
mpv-d350181aafa2fb5fdb800b1cf05539b71697de44.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/out/push.c')
0 files changed, 0 insertions, 0 deletions