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

Rémi Denis-Courmont remi at remlab.net
Mon Oct 8 13:34:59 CEST 2012


Acked by me. (No commit access here.)

On Mon,  8 Oct 2012 12:41:53 +0200, Rafaël Carré <funman at videolan.org>
wrote:
> ---
>  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;

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list