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

Thomas Guillem thomas at gllm.fr
Mon Jul 25 17:23:58 CEST 2016


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

diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c
index a3e0944..f0de470 100644
--- a/modules/audio_output/alsa.c
+++ b/modules/audio_output/alsa.c
@@ -306,11 +306,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)
             {
                 fmt->i_format = VLC_CODEC_SPDIFL;
                 pcm_format = SND_PCM_FORMAT_S16;
+                spdif = true;
             }
             else
             if (HAVE_FPU)
-- 
2.8.1



More information about the vlc-devel mailing list