summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_coreaudio.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-05 21:47:04 +0200
committerwm4 <wm4@nowhere>2015-05-05 21:47:04 +0200
commit399267393bb96710cde53c2fc7563f55cc32deb8 (patch)
tree4421a331f0bc685ac29c942a057237048232882a /audio/out/ao_coreaudio.c
parent7a5f5a8adf5921ed8fcee29d76113d9a7f018974 (diff)
downloadmpv-399267393bb96710cde53c2fc7563f55cc32deb8.tar.bz2
mpv-399267393bb96710cde53c2fc7563f55cc32deb8.tar.xz
ao_coreaudio_utils: don't require talloc for fourcc_repr()
Instead, apply a trick to make the caller allocate enough space on the stack.
Diffstat (limited to 'audio/out/ao_coreaudio.c')
-rw-r--r--audio/out/ao_coreaudio.c8
1 files changed, 4 insertions, 4 deletions
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);
}
}