Commit bf6b2d1d authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

libvlc: fix volume on sound increment when muted

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 03e38b50
...@@ -118,8 +118,9 @@ int doVolumeChanges( unsigned action, vlc_object_t * p_object, int i_nb_steps, ...@@ -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_step = config_GetInt( p_object->p_libvlc, "volume-step" );
i_volume = config_GetInt( p_object, "volume" ) if ( !b_unmute_condition )
+ i_volume_step * i_nb_steps; i_volume = config_GetInt( p_object, "volume" );
i_volume += i_volume_step * i_nb_steps;
if ( i_volume > AOUT_VOLUME_MAX ) if ( i_volume > AOUT_VOLUME_MAX )
i_volume = AOUT_VOLUME_MAX; i_volume = AOUT_VOLUME_MAX;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment