Commit 3b32be66 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf
Browse files

aout: change LEFT/RIGHT fmt from aout_UpdateStereoMode

parent f54b115a
......@@ -482,9 +482,13 @@ static void aout_UpdateStereoMode(audio_output_t *aout, int mode,
break;
case AOUT_VAR_CHAN_LEFT:
filters_cfg->remap[AOUT_CHANIDX_RIGHT] = AOUT_CHANIDX_DISABLE;
fmt->i_physical_channels = AOUT_CHAN_CENTER;
aout_FormatPrepare (fmt);
break;
case AOUT_VAR_CHAN_RIGHT:
filters_cfg->remap[AOUT_CHANIDX_LEFT] = AOUT_CHANIDX_DISABLE;
fmt->i_physical_channels = AOUT_CHAN_CENTER;
aout_FormatPrepare (fmt);
break;
case AOUT_VAR_CHAN_DOLBYS:
fmt->i_chan_mode = AOUT_CHANMODE_DOLBYSTEREO;
......@@ -693,11 +697,6 @@ int aout_OutputNew (audio_output_t *aout)
fmt->i_format = (fmt->i_bitspersample > 16) ? VLC_CODEC_FL32
: VLC_CODEC_S16N;
if (fmt->i_physical_channels == AOUT_CHANS_STEREO
&& (owner->requested_stereo_mode == AOUT_VAR_CHAN_LEFT
|| owner->requested_stereo_mode == AOUT_VAR_CHAN_RIGHT))
fmt->i_physical_channels = AOUT_CHAN_CENTER;
aout_SetupMixModeChoices(aout, fmt);
/* Prefer the user requested mode if available, otherwise, use the
......
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