diff options
author | wm4 <wm4@nowhere> | 2015-06-02 21:07:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-02 22:25:30 +0200 |
commit | 7c0d3b9a50d282c91efc3a4c84a443aa1d1ff4a6 (patch) | |
tree | 79dac491ca686b32103491bb246a824f03d2960d /player/client.h | |
parent | 87a94a56556d44388ea50a69fe46e829a5d87eb8 (diff) | |
download | mpv-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 'player/client.h')
0 files changed, 0 insertions, 0 deletions