]> git.sesse.net Git - vlc/blobdiff - src/audio_output/intf.c
* ALL: fixed a f*ckage I introduced recently ;) var_Type() now returns 0 when the...
[vlc] / src / audio_output / intf.c
index a0249e0fa2f8ee1b7c031d71e855b163ef7847e1..2e4d42164b391a3fef87b953592a02ae76a5125b 100644 (file)
@@ -2,7 +2,7 @@
  * intf.c : audio output API towards the interface modules
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: intf.c,v 1.10 2002/12/07 23:50:30 massiot Exp $
+ * $Id: intf.c,v 1.11 2002/12/10 18:22:01 gbazin Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -419,11 +419,11 @@ void aout_FindAndRestart( vlc_object_t * p_this )
 
     if ( p_aout == NULL ) return;
 
-    if ( var_Type( p_aout, "audio-device" ) >= 0 )
+    if ( var_Type( p_aout, "audio-device" ) != 0 )
     {
         var_Destroy( p_aout, "audio-device" );
     }
-    if ( var_Type( p_aout, "audio-channels" ) >= 0 )
+    if ( var_Type( p_aout, "audio-channels" ) != 0 )
     {
         var_Destroy( p_aout, "audio-channels" );
     }