From 399267393bb96710cde53c2fc7563f55cc32deb8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 5 May 2015 21:47:04 +0200 Subject: ao_coreaudio_utils: don't require talloc for fourcc_repr() Instead, apply a trick to make the caller allocate enough space on the stack. --- audio/out/ao_coreaudio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'audio/out/ao_coreaudio.c') diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c index f0de12cbe1..a91ba95c2f 100644 --- a/audio/out/ao_coreaudio.c +++ b/audio/out/ao_coreaudio.c @@ -437,8 +437,8 @@ static int hotplug_init(struct ao *ao) err = AudioObjectAddPropertyListener( kAudioObjectSystemObject, &addr, hotplug_cb, (void *)ao); if (err != noErr) { - char *c1 = fourcc_repr(ao, hotplug_properties[i]); - char *c2 = fourcc_repr(ao, err); + char *c1 = fourcc_repr(hotplug_properties[i]); + char *c2 = fourcc_repr(err); MP_ERR(ao, "failed to set device listener %s (%s)", c1, c2); goto coreaudio_error; } @@ -462,8 +462,8 @@ static void hotplug_uninit(struct ao *ao) err = AudioObjectRemovePropertyListener( kAudioObjectSystemObject, &addr, hotplug_cb, (void *)ao); if (err != noErr) { - char *c1 = fourcc_repr(ao, hotplug_properties[i]); - char *c2 = fourcc_repr(ao, err); + char *c1 = fourcc_repr(hotplug_properties[i]); + char *c2 = fourcc_repr(err); MP_ERR(ao, "failed to set device listener %s (%s)", c1, c2); } } -- cgit v1.2.3