[vlc-devel] [PATCH] wasapi: don't fallback to PCM if S/PDIF fails

Thomas Guillem thomas at gllm.fr
Tue Sep 13 09:23:53 CEST 2016


Since there is no spdif2pcm converters anymore.
---
 modules/audio_output/wasapi.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 6cc1416..6c759c7 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -409,14 +409,6 @@ static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict fmt,
 
     hr = IAudioClient_IsFormatSupported(sys->client, shared_mode,
                                         &wf.Format, &pwf);
-    if (FAILED(hr) && AOUT_FMT_SPDIF(fmt))
-    {
-        /* Device may not support SPDIF: try again with FL32 */
-        vlc_ToWave(&wf, fmt);
-        shared_mode = AUDCLNT_SHAREMODE_SHARED;
-        hr = IAudioClient_IsFormatSupported(sys->client, shared_mode,
-                                            &wf.Format, &pwf);
-    }
     if (FAILED(hr))
     {
         msg_Err(s, "cannot negotiate audio format (error 0x%lx)", hr);
-- 
2.9.3



More information about the vlc-devel mailing list