summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_coreaudio_utils.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-02 21:07:13 +0200
committerwm4 <wm4@nowhere>2015-06-02 22:25:30 +0200
commit7c0d3b9a50d282c91efc3a4c84a443aa1d1ff4a6 (patch)
tree79dac491ca686b32103491bb246a824f03d2960d /audio/out/ao_coreaudio_utils.c
parent87a94a56556d44388ea50a69fe46e829a5d87eb8 (diff)
downloadmpv-7c0d3b9a50d282c91efc3a4c84a443aa1d1ff4a6.tar.bz2
mpv-7c0d3b9a50d282c91efc3a4c84a443aa1d1ff4a6.tar.xz
ao_coreaudio_exclusive: react to device removal
Listening to kAudioDevicePropertyDeviceHasChanged does not send any property change notifications when the device dies. Makes no sense, but I suppose in CoreAudio logic a dead/removed device can't send any notifications. This caused the player to essentially pause playback if the audio device was removed during playback. Fix by listening to the kAudioHardwarePropertyDevices property too, which will actually be sent in this specific case. Then, if querying the already dead device fails, we know we have to reload.
Diffstat (limited to 'audio/out/ao_coreaudio_utils.c')
0 files changed, 0 insertions, 0 deletions