summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>2013-07-20 13:58:25 -0300
committerwm4 <wm4@nowhere>2013-07-22 02:42:38 +0200
commit9fe277278070ca32b7b08bc29000d28777848266 (patch)
tree48a7fa39eb2a74faec6f5adb2c6a4de0ce77f3c6
parenta8b4be274cfcf2372f26be3d9951af683ecf5032 (diff)
downloadmpv-9fe277278070ca32b7b08bc29000d28777848266.tar.bz2
mpv-9fe277278070ca32b7b08bc29000d28777848266.tar.xz
ao_wasapi: Log the passthrough format in MSGL_V
-rw-r--r--audio/out/ao_wasapi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c
index 33634f261f..1a4ec04fff 100644
--- a/audio/out/ao_wasapi.c
+++ b/audio/out/ao_wasapi.c
@@ -414,6 +414,11 @@ static int try_passthrough(struct wasapi_state *state,
union WAVEFMT u;
u.extensible = &wformat;
+ EnterCriticalSection(&state->print_lock);
+ mp_msg(MSGT_AO, MSGL_V, "ao-wasapi: trying passthrough for %s...\n",
+ af_fmt2str_short(ao->format));
+ LeaveCriticalSection(&state->print_lock);
+
HRESULT hr = IAudioClient_IsFormatSupported(state->pAudioClient,
state->share_mode,
u.ex, NULL);