ao_coreaudio: log hotplug events explicitly

This commit is contained in:
wm4
2015-06-29 23:54:18 +02:00
parent 2e4f106ef8
commit 956b8658fb
+6 -3
View File
@@ -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;
}