]> git.sesse.net Git - vlc/blobdiff - src/audio_output/dec.c
Major change of the channels management. p_format->i_channels disappeares
[vlc] / src / audio_output / dec.c
index 7824b86f03899016e3ffe394da87ba2c5af4b2b7..6dba1437e31c3e4ba2a0dda86ad89d1d933e6c11 100644 (file)
@@ -2,7 +2,7 @@
  * dec.c : audio output API towards decoders
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: dec.c,v 1.1 2002/09/26 22:40:25 massiot Exp $
+ * $Id: dec.c,v 1.2 2002/11/14 22:38:48 massiot Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -80,6 +80,15 @@ static aout_input_t * DecNew( aout_instance_t * p_aout,
     {
         int i;
 
+        if ( var_Type( p_aout, "audio-device" ) >= 0 )
+        {
+            var_Destroy( p_aout, "audio-device" );
+        }
+        if ( var_Type( p_aout, "audio-channels" ) >= 0 )
+        {
+            var_Destroy( p_aout, "audio-channels" );
+        }
+
         /* Recreate the output using the new format. */
         if ( aout_OutputNew( p_aout, p_format ) < 0 )
         {