]> git.sesse.net Git - vlc/commitdiff
set volume-change variable also in volumeUp/volumeDown, because it seemed that when...
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 22 Jan 2008 07:19:24 +0000 (07:19 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 22 Jan 2008 07:19:24 +0000 (07:19 +0000)
src/audio_output/intf.c

index 5de1aa0de69ddea30acdde38245a5fafb418f136..b341570f2d08b1f0de26d1d4122c85c59bf456cf 100644 (file)
@@ -170,6 +170,9 @@ int __aout_VolumeUp( vlc_object_t * p_object, int i_nb_steps,
                     (audio_volume_t) i_volume );
     if ( pi_volume != NULL ) *pi_volume = (audio_volume_t) i_volume;
 
+    val.b_bool = VLC_TRUE;
+    var_Set( p_object->p_libvlc, "volume-change", val );
+
     if ( p_aout == NULL ) return 0;
 
     vlc_mutex_lock( &p_aout->mixer_lock );
@@ -209,6 +212,9 @@ int __aout_VolumeDown( vlc_object_t * p_object, int i_nb_steps,
     var_SetInteger( p_object->p_libvlc, "saved-volume", (audio_volume_t) i_volume );
     if ( pi_volume != NULL ) *pi_volume = (audio_volume_t) i_volume;
 
+    val.b_bool = VLC_TRUE;
+    var_Set( p_object->p_libvlc, "volume-change", val );
+
     if ( p_aout == NULL ) return 0;
 
     vlc_mutex_lock( &p_aout->mixer_lock );