1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00
mpv/audio/out
wm4 3546188a41 ao_alsa: always unset ALSA error handler, cleanup on init error
The ALSA device was not closed when initialization failed.

The ALSA error handler (set with snd_lib_error_set_handler()) was not
unset when closing ao_alsa. If this is not done, the handler will still
be called when other libraries using ALSA cause errors, even though
ao_alsa was long closed. Since these messages were prefixed with
"[AO_ALSA]", they were misleading and implying ao_alsa was still used.

For some reason, our error handler is still called even after doing
snd_lib_error_set_handler(NULL), which should be impossible. Checking
with the debuggers, inserting printf(), as well as the alsa-lib source
code all suggest our error handler should not be called, but it still
happens. It's a complete mystery.
2013-05-26 16:44:18 +02:00
..
ao_alsa.c ao_alsa: always unset ALSA error handler, cleanup on init error 2013-05-26 16:44:18 +02:00
ao_coreaudio.c ao_coreaudio: fix switched parameters 2013-05-12 22:00:32 +02:00
ao_dsound.c audio/out: channel map selection 2013-05-12 21:24:57 +02:00
ao_jack.c audio/out: channel map selection 2013-05-12 21:24:57 +02:00
ao_lavc.c Merge branch 'audio_changes' 2013-05-12 21:47:55 +02:00
ao_null.c audio/out: channel map selection 2013-05-12 21:24:57 +02:00
ao_openal.c audio/out: channel map selection 2013-05-12 21:24:57 +02:00
ao_oss.c audio/out: channel map selection 2013-05-12 21:24:57 +02:00
ao_pcm.c audio/out: channel map selection 2013-05-12 21:24:57 +02:00
ao_portaudio.c audio/out: channel map selection 2013-05-12 21:24:57 +02:00
ao_pulse.c audio/out: channel map selection 2013-05-12 21:24:57 +02:00
ao_rsound.c audio/out: channel map selection 2013-05-12 21:24:57 +02:00
ao_sdl.c audio/out: channel map selection 2013-05-12 21:24:57 +02:00
ao.c audio: add channel map selection function 2013-05-12 21:24:57 +02:00
ao.h audio: add channel map selection function 2013-05-12 21:24:57 +02:00
audio_out_internal.h audio/out: switch to channel map 2013-05-12 21:24:54 +02:00