summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_coreaudio_utils.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-21 18:53:50 +0200
committerwm4 <wm4@nowhere>2015-10-21 18:53:50 +0200
commitff778f6d684a632f9c91fd8488aa5e1ef2fc8ad0 (patch)
treec42868bb802b56e9275ed9b11dc224c011f0b87f /audio/out/ao_coreaudio_utils.c
parentcee9aeaf6b6f88b3dd40df32f0e4833285909547 (diff)
downloadmpv-ff778f6d684a632f9c91fd8488aa5e1ef2fc8ad0.tar.bz2
mpv-ff778f6d684a632f9c91fd8488aa5e1ef2fc8ad0.tar.xz
ao_coreaudio: log current format before setting new format
Diffstat (limited to 'audio/out/ao_coreaudio_utils.c')
-rw-r--r--audio/out/ao_coreaudio_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao_coreaudio_utils.c b/audio/out/ao_coreaudio_utils.c
index 6b60b63b05..dff672e7d3 100644
--- a/audio/out/ao_coreaudio_utils.c
+++ b/audio/out/ao_coreaudio_utils.c
@@ -505,6 +505,8 @@ bool ca_change_physical_format_sync(struct ao *ao, AudioStreamID stream,
err = CA_GET(stream, kAudioStreamPropertyPhysicalFormat, &prev_format);
CHECK_CA_ERROR("can't get current physical format");
+ ca_print_asbd(ao, "format in use before switching:", &prev_format);
+
/* Install the callback. */
AudioObjectPropertyAddress p_addr = {
.mSelector = kAudioStreamPropertyPhysicalFormat,