Commit 0656691a authored by Thomas Guillem's avatar Thomas Guillem

aout: refactor default stereo-mode setting

parent 25320d09
......@@ -475,12 +475,10 @@ int aout_OutputNew (audio_output_t *aout, audio_sample_format_t *restrict fmt,
if (b_stereo_original && fmt->i_chan_mode & AOUT_CHANMODE_DUALMONO)
{ /* Go directly to the left channel. */
remap[AOUT_CHANIDX_RIGHT] = AOUT_CHANIDX_DISABLE;
val.i_int = AOUT_VAR_CHAN_LEFT;
var_Change (aout, "stereo-mode", VLC_VAR_SETVALUE, &val, NULL);
default_val.i_int = val.i_int = AOUT_VAR_CHAN_LEFT;
}
else
var_Change (aout, "stereo-mode", VLC_VAR_SETVALUE, &default_val,
NULL);
var_Change (aout, "stereo-mode", VLC_VAR_SETVALUE, &default_val,
NULL);
break;
}
......
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