[vlc-commits] audiotrack: set i_original_channels correctly

Rafaël Carré git at videolan.org
Mon Oct 8 13:42:29 CEST 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Oct  8 12:41:28 2012 +0200| [c2a6e88a9101f3a59038684f88a93e3f24f5217d] | committer: Rafaël Carré

audiotrack: set i_original_channels correctly

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c2a6e88a9101f3a59038684f88a93e3f24f5217d
---

 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;



More information about the vlc-commits mailing list