Commit f073535f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RC (old): do not protect aout_VolumeUp() against overflow

aout_VolumeUp() already handles this case correctly internally.
parent 2ac4e79a
...@@ -1537,12 +1537,6 @@ static int VolumeMove( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1537,12 +1537,6 @@ static int VolumeMove( vlc_object_t *p_this, char const *psz_cmd,
return VLC_EGENERIC; return VLC_EGENERIC;
} }
i_volume_step = config_GetInt( p_intf->p_libvlc, "volume-step" );
if ( i_nb_steps <= 0 || i_nb_steps > (AOUT_VOLUME_MAX/i_volume_step) )
{
i_nb_steps = 1;
}
if( !strcmp(psz_cmd, "voldown") ) if( !strcmp(psz_cmd, "voldown") )
i_nb_steps *= -1; i_nb_steps *= -1;
if( aout_VolumeUp( p_intf->p_sys->p_playlist, i_nb_steps, &i_volume ) < 0 ) if( aout_VolumeUp( p_intf->p_sys->p_playlist, i_nb_steps, &i_volume ) < 0 )
......
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