[vlc-commits] aout: refactor default stereo-mode setting
Thomas Guillem
git at videolan.org
Mon Jul 17 13:53:48 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jul 17 13:33:28 2017 +0200| [0656691a8bed3376d3eeafb9ad712932e3e0fa5f] | committer: Thomas Guillem
aout: refactor default stereo-mode setting
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0656691a8bed3376d3eeafb9ad712932e3e0fa5f
---
src/audio_output/output.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index e362b81e83..fdee815930 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -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;
}
More information about the vlc-commits
mailing list