[vlc-commits] wasapi: improve debug log in failure cases

Jean-Baptiste Kempf git at videolan.org
Fri Jan 26 14:27:10 CET 2018


vlc/vlc-3.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jan 25 23:56:14 2018 +0100| [6d94df1c4225797a0f6d764bf5537117e2f21ec2] | committer: Jean-Baptiste Kempf

wasapi: improve debug log in failure cases

Should help for #19541

(cherry picked from commit eb82d3412e088e1f0ec1b5bf83ca0344b1337e59)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=6d94df1c4225797a0f6d764bf5537117e2f21ec2
---

 modules/audio_output/wasapi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 1d8795c348..b74c08a317 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -546,7 +546,7 @@ static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict pfmt,
         if (pfmt->i_format == VLC_CODEC_DTS && b_hdmi)
         {
             msg_Warn(s, "cannot negotiate DTS at 768khz IEC958 rate (HDMI), "
-                     "fallback to 48kHz (S/PDIF)");
+                     "fallback to 48kHz (S/PDIF) (error 0x%lx)", hr);
             IAudioClient_Release(sys->client);
             free(sys);
             var_SetBool(s->obj.parent, "dtshd", false);



More information about the vlc-commits mailing list