From: RĂ©mi Denis-Courmont Date: Sun, 10 Jan 2010 13:54:09 +0000 (+0200) Subject: Make volume-change a void rather than a boolean X-Git-Tag: 1.1.0-ff~1298 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=80158557a6793a52dac40fa2a75c627b3366ca9c;p=vlc Make volume-change a void rather than a boolean --- diff --git a/src/audio_output/intf.c b/src/audio_output/intf.c index 9a9548bf8c..0424b888fb 100644 --- a/src/audio_output/intf.c +++ b/src/audio_output/intf.c @@ -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 ) diff --git a/src/libvlc.c b/src/libvlc.c index ff6123336d..3543e96f6b 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -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" );