]> git.sesse.net Git - vlc/commitdiff
Fix text for stereo-mode variable
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 16 May 2013 20:13:54 +0000 (22:13 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Tue, 21 May 2013 19:25:30 +0000 (21:25 +0200)
The text needs to be always set, as its used by the GUI.

src/audio_output/output.c

index 84653c3c5568dd4d4f844287d27c7bd51d43b123..6fed4359a4d884255410aa16fcb9b76fa39b9907 100644 (file)
@@ -369,9 +369,15 @@ int aout_OutputNew (audio_output_t *aout, audio_sample_format_t *restrict fmt)
     }
 
     if (!var_Type (aout, "stereo-mode"))
+    {
         var_Create (aout, "stereo-mode",
                     VLC_VAR_INTEGER | VLC_VAR_HASCHOICE | VLC_VAR_DOINHERIT);
 
+        vlc_value_t txt;
+        txt.psz_string = _("Audio Channels");
+        var_Change (aout, "stereo-mode", VLC_VAR_SETTEXT, &txt, NULL);
+    }
+
     /* The user may have selected a different channels configuration. */
     var_AddCallback (aout, "stereo-mode", aout_ChannelsRestart, NULL);
     switch (var_GetInteger (aout, "stereo-mode"))
@@ -400,8 +406,6 @@ int aout_OutputNew (audio_output_t *aout, audio_sample_format_t *restrict fmt)
             vlc_value_t val, txt;
             val.i_int = 0;
             var_Change (aout, "stereo-mode", VLC_VAR_DELCHOICE, &val, NULL);
-            txt.psz_string = _("Stereo audio mode");
-            var_Change (aout, "stereo-mode", VLC_VAR_SETTEXT, &txt, NULL);
             if (fmt->i_original_channels & AOUT_CHAN_DOLBYSTEREO)
             {
                 val.i_int = AOUT_VAR_CHAN_DOLBYS;