summaryrefslogtreecommitdiffstats
path: root/audio/chmap_sel.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-03-14 15:43:36 +0100
committerwm4 <wm4@nowhere>2017-03-14 15:50:18 +0100
commitbc04acf3a76eb579ad0012286ac3bfeadaa07cc0 (patch)
tree7f877fed6e5e2695b26ffe4da5ff9c0a6fe9a155 /audio/chmap_sel.h
parent636675ece866cf29291622adcccd93799a821d3d (diff)
downloadmpv-bc04acf3a76eb579ad0012286ac3bfeadaa07cc0.tar.bz2
mpv-bc04acf3a76eb579ad0012286ac3bfeadaa07cc0.tar.xz
ao_alsa: POLLERR can be set even if the device is not lost
Apparently POLLERR can be set if poll is called while the device is in the SND_PCM_STATE_PREPARED state. So assume that we can simply call snd_pcm_status() to check whether the error is because the device went away (i.e. we expect it to return ENODEV if this happened). This avoids sporadic device lost warnings and AO reloads. The actual device lost case is untested.
Diffstat (limited to 'audio/chmap_sel.h')
0 files changed, 0 insertions, 0 deletions