[vlc-devel] [RFC PATCH 14/17] wasapi: don't check "spdif" option

Thomas Guillem thomas at gllm.fr
Mon Jul 25 17:24:03 CEST 2016


Input format can't be S/PDIF anymore if the "spdif" option is false.
---
 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 63d0e91..6cc1416 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -396,7 +396,7 @@ static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict fmt,
     WAVEFORMATEX *pwf;
     AUDCLNT_SHAREMODE shared_mode;
 
-    if (AOUT_FMT_SPDIF(fmt) && var_InheritBool(s, "spdif"))
+    if (AOUT_FMT_SPDIF(fmt))
     {
         vlc_SpdifToWave(&wf, fmt);
         shared_mode = AUDCLNT_SHAREMODE_EXCLUSIVE;
-- 
2.8.1



More information about the vlc-devel mailing list