Discussion:
aout: reset stereo-mode when a new aout is created
(too old to reply)
Thomas Guillem
2017-07-17 11:54:05 UTC
Permalink
Raw Message
vlc | branch: master | Thomas Guillem <***@gllm.fr> | Mon Jul 17 13:36:28 2017 +0200| [96a19470325f22ecf72833217d2390f3617a830d] | committer: Thomas Guillem

aout: reset stereo-mode when a new aout is created
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=96a19470325f22ecf72833217d2390f3617a830d
---

src/audio_output/dec.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index fb5da52102..2433df0c6b 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -89,6 +89,9 @@ int aout_DecNew( audio_output_t *p_aout,
}
owner->request_vout = *p_request_vout;

+ var_Change (p_aout, "stereo-mode", VLC_VAR_SETVALUE,
+ &(vlc_value_t) { .i_int = AOUT_VAR_CHAN_UNSET }, NULL);
+
int remap[] = AOUT_CHAN_REMAP_INIT;
if (aout_OutputNew (p_aout, &owner->mixer_format, remap))
goto error;

Loading...