[vlc-commits] ALSA: fix uninitialized variable
Rémi Denis-Courmont
git at videolan.org
Thu Feb 14 17:29:47 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Feb 14 18:29:37 2013 +0200| [1a2cdc6dd4ea7dee61440600242c70d48577569d] | committer: Rémi Denis-Courmont
ALSA: fix uninitialized variable
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1a2cdc6dd4ea7dee61440600242c70d48577569d
---
modules/audio_output/alsa.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c
index 240dcdd..2ba9a36 100644
--- a/modules/audio_output/alsa.c
+++ b/modules/audio_output/alsa.c
@@ -460,7 +460,10 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
channels = popcount (fmt->i_physical_channels);
}
else
+ {
+ sys->chans_to_reorder = 0;
channels = 2;
+ }
fmt->i_original_channels = fmt->i_physical_channels;
/* By default, ALSA plug will pad missing channels with zeroes, which is
More information about the vlc-commits
mailing list