[vlc-devel] commit: Make volume-change a void rather than a boolean ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jan 10 14:54:23 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 10 15:54:09 2010 +0200| [80158557a6793a52dac40fa2a75c627b3366ca9c] | committer: Rémi Denis-Courmont
Make volume-change a void rather than a boolean
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80158557a6793a52dac40fa2a75c627b3366ca9c
---
src/audio_output/intf.c | 2 +-
src/libvlc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/audio_output/intf.c b/src/audio_output/intf.c
index 9a9548b..0424b88 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 ff61233..3543e96 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" );
More information about the vlc-devel
mailing list