From bf6b2d1d910e1d0837e19dbb27f3615084ead90b Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Tue, 12 Jan 2010 22:48:16 +0100 Subject: [PATCH] libvlc: fix volume on sound increment when muted Signed-off-by: Jean-Baptiste Kempf --- src/audio_output/intf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/audio_output/intf.c b/src/audio_output/intf.c index 0424b888fb..db55c4ade4 100644 --- a/src/audio_output/intf.c +++ b/src/audio_output/intf.c @@ -118,8 +118,9 @@ int doVolumeChanges( unsigned action, vlc_object_t * p_object, int i_nb_steps, { i_volume_step = config_GetInt( p_object->p_libvlc, "volume-step" ); - i_volume = config_GetInt( p_object, "volume" ) - + i_volume_step * i_nb_steps; + if ( !b_unmute_condition ) + i_volume = config_GetInt( p_object, "volume" ); + i_volume += i_volume_step * i_nb_steps; if ( i_volume > AOUT_VOLUME_MAX ) i_volume = AOUT_VOLUME_MAX; -- 2.39.2