Commit 6498cfa1 authored by Thomas Guillem's avatar Thomas Guillem

aout: no "stereo-mode" for mono inputs

parent 6b5a14c1
......@@ -412,15 +412,12 @@ static void aout_PrepareStereoMode (audio_output_t *aout,
vlc_value_t val, txt, default_val = { .i_int = AOUT_VAR_CHAN_UNSET };
val.i_int = 0;
if (!AOUT_FMT_LINEAR(fmt))
if (!AOUT_FMT_LINEAR(fmt) || i_nb_input_channels == 1)
return;
if (i_nb_input_channels > 1)
{
val.i_int = AOUT_VAR_CHAN_MONO;
txt.psz_string = _("Mono");
var_Change (aout, "stereo-mode", VLC_VAR_ADDCHOICE, &val, &txt);
}
val.i_int = AOUT_VAR_CHAN_MONO;
txt.psz_string = _("Mono");
var_Change (aout, "stereo-mode", VLC_VAR_ADDCHOICE, &val, &txt);
if (i_nb_input_channels != 2)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment