diff options
author | Jan Ekström <jeebjp@gmail.com> | 2018-09-27 20:39:49 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-09-29 23:07:19 +0300 |
commit | 03e3abcb0c4cc9032f2843e469a76f67d4d33b43 (patch) | |
tree | f2434bac375ca4dc2eaaef1d9c5a13f36781f322 /audio/aframe.c | |
parent | 1dd77e41c1c9b99802c1f46eccee2ed30432df15 (diff) | |
download | mpv-03e3abcb0c4cc9032f2843e469a76f67d4d33b43.tar.bz2 mpv-03e3abcb0c4cc9032f2843e469a76f67d4d33b43.tar.xz |
ao_alsa: handle XRUNs separately from other errors
According to ALSA doxy, EPIPE is a synonym to SND_PCM_STATE_XRUN,
and that is a state that we should attempt to automatically recover
from. In case recovery fails, log an error and return zero.
A warning message will still be output for each XRUN since those
are not something we should generally be receiving.
(cherry picked from commit fdc952486a8c0d6446783e424953fdb6097ed987)
Diffstat (limited to 'audio/aframe.c')
0 files changed, 0 insertions, 0 deletions