]> git.sesse.net Git - vlc/commitdiff
audiotrack: set i_original_channels correctly
authorRafaël Carré <funman@videolan.org>
Mon, 8 Oct 2012 10:41:28 +0000 (12:41 +0200)
committerRafaël Carré <funman@videolan.org>
Mon, 8 Oct 2012 11:42:16 +0000 (13:42 +0200)
modules/audio_output/audiotrack.c

index 27ed1c8cf4b23396aa4920326a2f2de3bef3fa32..838935c8f53f1ad2c4cc044fc303026cf929182b 100644 (file)
@@ -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;