]> git.sesse.net Git - vlc/commitdiff
Make volume-change a void rather than a boolean
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 10 Jan 2010 13:54:09 +0000 (15:54 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 10 Jan 2010 13:54:09 +0000 (15:54 +0200)
src/audio_output/intf.c
src/libvlc.c

index 9a9548bf8c32f74f2d3c25b1b6fa033095dce845..0424b888fba434088377e49c2ca43b67cc6fd722 100644 (file)
@@ -153,7 +153,7 @@ int doVolumeChanges( unsigned action, vlc_object_t * p_object, int i_nb_steps,
     }
 
     /* trigger callbacks */
-    var_SetBool( p_object->p_libvlc, "volume-change", true );
+    var_TriggerCallback( p_object->p_libvlc, "volume-change");
     if ( p_aout ) var_SetBool( p_aout, "intf-change", true );
 
     if ( p_aout )
index ff6123336d1a25282a4da718c44a6e86656959c6..3543e96f6ba9434ba2a5041090046366ef7a635a 100644 (file)
@@ -858,7 +858,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
      */
     /* Create volume callback system. (this variable must be created before
        all interfaces as they can use it) */
-    var_Create( p_libvlc, "volume-change", VLC_VAR_BOOL );
+    var_Create( p_libvlc, "volume-change", VLC_VAR_VOID );
     var_Create( p_libvlc, "volume-muted", VLC_VAR_BOOL );
 
     psz_modules = var_CreateGetNonEmptyString( p_libvlc, "extraintf" );