Commit c2a6e88a authored by Rafaël Carré's avatar Rafaël Carré
Browse files

audiotrack: set i_original_channels correctly

parent f021e86c
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment