mpv-player/mpv — pull request #626 by foo86 (2014-03-09 20:56:16+00:00)
Title: 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().