]> git.sesse.net Git - vlc/commitdiff
Also fix audio_sample_format_t::i_channels in aout_FormatPrepare.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 26 Jan 2010 18:18:06 +0000 (19:18 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 26 Jan 2010 20:10:00 +0000 (21:10 +0100)
src/audio_output/common.c

index 2bdece1d4eec9b2be718ab099021127b87248301..151bf8b63d77fe19bc1ae18ea36d76b119ec5ee6 100644 (file)
@@ -238,6 +238,7 @@ unsigned int aout_BitsPerSample( vlc_fourcc_t i_format )
  *****************************************************************************/
 void aout_FormatPrepare( audio_sample_format_t * p_format )
 {
+    p_format->i_channels = aout_FormatNbChannels( p_format );
     p_format->i_bitspersample = aout_BitsPerSample( p_format->i_format );
     if( p_format->i_bitspersample > 0 )
     {