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

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


Input format can't be S/PDIF anymore if the "spdif" option is false.
---
 modules/audio_output/oss.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/audio_output/oss.c b/modules/audio_output/oss.c
index ba1a0f6..f9e93cf 100644
--- a/modules/audio_output/oss.c
+++ b/modules/audio_output/oss.c
@@ -129,9 +129,10 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
             break;
         default:
             if (AOUT_FMT_SPDIF(fmt))
-                spdif = var_InheritBool (aout, "spdif");
-            if (spdif)
+            {
+                spdif = true;
                 format = AFMT_AC3;
+            }
 #ifdef AFMT_FLOAT
             else if (HAVE_FPU)
                 format = AFMT_FLOAT;
-- 
2.8.1



More information about the vlc-devel mailing list