diff options
Diffstat (limited to 'audio/out/ao_coreaudio.c')
-rw-r--r-- | audio/out/ao_coreaudio.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c index a7e7b11966..cba0900973 100644 --- a/audio/out/ao_coreaudio.c +++ b/audio/out/ao_coreaudio.c @@ -267,14 +267,16 @@ static int init(struct ao *ao) selected_device = p->opt_device_id; } - char *device_name; - err = CA_GET_STR(selected_device, kAudioObjectPropertyName, &device_name); - CHECK_CA_ERROR("could not get selected audio device name"); + if (mp_msg_test_log(ao->log, MSGL_V)) { + char *name; + err = CA_GET_STR(selected_device, kAudioObjectPropertyName, &name); + CHECK_CA_ERROR("could not get selected audio device name"); - MP_VERBOSE(ao, "selected audio output device: %s (%" PRIu32 ")\n", - device_name, selected_device); + MP_VERBOSE(ao, "selected audio output device: %s (%" PRIu32 ")\n", + name, selected_device); - talloc_free(device_name); + talloc_free(name); + } // Save selected device id p->device = selected_device; |