mirror of https://github.com/mpv-player/mpv
a44a726301
ALSA API reports -EPIPE even when the the device is lost, which we currently always assume to be an XRUN. If we assumed XRUN 10 times and didn't manage to recover, just consider the device lost and try to reconnect. Allows ao_alsa to recover from alsa server being killed then reinitialized. And even in the worst case, this should be better than the status quo of mpv attempting to prepare a PCM device indefinitely until the user restarts mpv. This is admittedly not ideal, and I don't think the -EPIPE hack is necessary anymore, but I can only test on my setup and removing the 'assume -EPIPE is an XRUN' hack might break some setups for whatever mysterious reasons. |
||
---|---|---|
.. | ||
decode | ||
filter | ||
out | ||
aframe.c | ||
aframe.h | ||
chmap.c | ||
chmap.h | ||
chmap_avchannel.c | ||
chmap_avchannel.h | ||
chmap_sel.c | ||
chmap_sel.h | ||
fmt-conversion.c | ||
fmt-conversion.h | ||
format.c | ||
format.h |