summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-29 23:54:18 +0200
committerwm4 <wm4@nowhere>2015-06-29 23:54:18 +0200
commit956b8658fb2f733d5eaa441c71df7189eb77c79b (patch)
tree60ef94e1ee99d7472fe4cabd8ec94414d70537be
parent2e4f106ef87f3f42d88b8d76313967700437e271 (diff)
downloadmpv-956b8658fb2f733d5eaa441c71df7189eb77c79b.tar.bz2
mpv-956b8658fb2f733d5eaa441c71df7189eb77c79b.tar.xz
ao_coreaudio: log hotplug events explicitly
-rw-r--r--audio/out/ao_coreaudio.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c
index 3585c1d9d3..b39cebc2e4 100644
--- a/audio/out/ao_coreaudio.c
+++ b/audio/out/ao_coreaudio.c
@@ -345,9 +345,12 @@ static void uninit(struct ao *ao)
static OSStatus hotplug_cb(AudioObjectID id, UInt32 naddr,
const AudioObjectPropertyAddress addr[],
- void *ctx) {
- reinit_device(ctx);
- ao_hotplug_event(ctx);
+ void *ctx)
+{
+ struct ao *ao = ctx;
+ MP_VERBOSE(ao, "Handling potential hotplug event...\n");
+ reinit_device(ao);
+ ao_hotplug_event(ao);
return noErr;
}