[vlc-commits] wasapi: log when digital pass-through fails

Thomas Guillem git at videolan.org
Wed Sep 14 15:32:04 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Sep 13 17:00:06 2016 +0200| [4af14a43da7a07bafbfad1091edade8410cfbed6] | committer: Thomas Guillem

wasapi: log when digital pass-through fails

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4af14a43da7a07bafbfad1091edade8410cfbed6
---

 modules/audio_output/wasapi.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 7ac1aa5..4078775 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -433,7 +433,10 @@ static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict pfmt,
 
     if (FAILED(hr))
     {
-        msg_Err(s, "cannot negotiate audio format (error 0x%lx)", hr);
+        msg_Err(s, "cannot negotiate audio format (error 0x%lx)%s", hr,
+                hr == AUDCLNT_E_UNSUPPORTED_FORMAT
+                && fmt.i_format == VLC_CODEC_SPDIFL ?
+                ": digital pass-through not supported" : "");
         goto error;
     }
 



More information about the vlc-commits mailing list