[vlc-commits] aout: propose reverse-stereo mode only for stereo inputs

Thomas Guillem git at videolan.org
Wed Jul 19 18:57:40 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jul 17 17:14:31 2017 +0200| [25a276c610387c52a9bbeb9552734226430c7a98] | committer: Thomas Guillem

aout: propose reverse-stereo mode only for stereo inputs

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

 src/audio_output/output.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index d0eacc2b02..a9afca7e7f 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -418,10 +418,11 @@ static void aout_PrepareStereoMode (audio_output_t *aout,
         val.i_int = AOUT_VAR_CHAN_RIGHT;
         txt.psz_string = _("Right");
         var_Change (aout, "stereo-mode", VLC_VAR_ADDCHOICE, &val, &txt);
+
+        val.i_int = AOUT_VAR_CHAN_RSTEREO;
+        txt.psz_string = _("Reverse stereo");
+        var_Change (aout, "stereo-mode", VLC_VAR_ADDCHOICE, &val, &txt);
     }
-    val.i_int = AOUT_VAR_CHAN_RSTEREO;
-    txt.psz_string = _("Reverse stereo");
-    var_Change (aout, "stereo-mode", VLC_VAR_ADDCHOICE, &val, &txt);
 
     if (fmt->i_channels >= 2)
     {



More information about the vlc-commits mailing list