"state" is an integer, not a boolean (since vlc_bool_t is an int, that only makes...
authorRafaël Carré <funman@videolan.org>
Thu, 17 Jan 2008 12:28:21 +0000 (12:28 +0000)
committerRafaël Carré <funman@videolan.org>
Thu, 17 Jan 2008 12:28:21 +0000 (12:28 +0000)
src/control/media_instance.c

index a4fd6f1..e9b7478 100644 (file)
@@ -153,7 +153,7 @@ input_state_changed( vlc_object_t * p_this, char const * psz_cmd,
     libvlc_event_type_t type = newval.i_int;
 
     if( strcmp( psz_cmd, "state" ) )
-        type = var_GetBool( p_this, "state" );
+        type = var_GetInteger( p_this, "state" );
 
     switch ( type )
     {