diff options
author | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2013-07-20 13:58:25 -0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-22 02:42:38 +0200 |
commit | 9fe277278070ca32b7b08bc29000d28777848266 (patch) | |
tree | 48a7fa39eb2a74faec6f5adb2c6a4de0ce77f3c6 | |
parent | a8b4be274cfcf2372f26be3d9951af683ecf5032 (diff) | |
download | mpv-9fe277278070ca32b7b08bc29000d28777848266.tar.bz2 mpv-9fe277278070ca32b7b08bc29000d28777848266.tar.xz |
ao_wasapi: Log the passthrough format in MSGL_V
-rw-r--r-- | audio/out/ao_wasapi.c | 5 |
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); |