[vlc-devel] [PATCH] audiotrack: set i_original_channels correctly

Rafaël Carré funman at videolan.org
Mon Oct 8 12:41:53 CEST 2012


---
 modules/audio_output/audiotrack.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index 27ed1c8..838935c 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -209,8 +209,8 @@ static int Open(vlc_object_t *p_this)
     format = (p_aout->format.i_format == VLC_CODEC_S16L) ? PCM_16_BIT : PCM_8_BIT;
 
     /* TODO: android supports more channels */
-    p_aout->format.i_original_channels = aout_FormatNbChannels(&p_aout->format);
-    switch(p_aout->format.i_original_channels)
+    p_aout->format.i_original_channels = p_aout->format.i_physical_channels;
+    switch(aout_FormatNbChannels(&p_aout->format))
     {
     case 1:
         channel = CHANNEL_OUT_MONO;
-- 
1.7.10.4



More information about the vlc-devel mailing list