From 956b8658fb2f733d5eaa441c71df7189eb77c79b Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 29 Jun 2015 23:54:18 +0200 Subject: ao_coreaudio: log hotplug events explicitly --- audio/out/ao_coreaudio.c | 9 ++++++--- 1 file 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; } -- cgit v1.2.3