diff options
author | wm4 <wm4@nowhere> | 2015-01-21 19:38:18 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-21 19:38:18 +0100 |
commit | c0077ac936da31e959c7c5cda1a758dc545e9443 (patch) | |
tree | 95c551db19c27cc22759e6582c6ccd2563d1d3b3 /etc | |
parent | a0caadd512a6f531fd01638570883e629f9dc6e5 (diff) | |
download | mpv-c0077ac936da31e959c7c5cda1a758dc545e9443.tar.bz2 mpv-c0077ac936da31e959c7c5cda1a758dc545e9443.tar.xz |
ao_alsa: reinitialize if device got broken
Apparently, physically disconnecting the audio device (consider USB
audio) breaks the ALSA device handle forever. It will signal ENODEV.
Fortunately, it's easy for us to handle this, and we can just use
existing mechanisms that will make the playback core close and reopen
the AO. Whether the immediate reopening will actually succeeds really is
ALSA's problem, though.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions