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

RC (old): remove useless check for AOUT_VOLUME_MAX

parent 87481072
...@@ -1496,13 +1496,6 @@ static int Volume( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1496,13 +1496,6 @@ static int Volume( vlc_object_t *p_this, char const *psz_cmd,
{ {
/* Set. */ /* Set. */
audio_volume_t i_volume = atoi( newval.psz_string ); audio_volume_t i_volume = atoi( newval.psz_string );
if ( (i_volume > (audio_volume_t)AOUT_VOLUME_MAX) )
{
msg_rc( "Volume must be in the range 0-%d.", AOUT_VOLUME_MAX );
i_error = VLC_EBADVAR;
}
else
{
if( i_volume == 0 ) if( i_volume == 0 )
aout_ToggleMute( p_playlist, NULL ); aout_ToggleMute( p_playlist, NULL );
if( !aout_VolumeSet( p_playlist, i_volume ) ) if( !aout_VolumeSet( p_playlist, i_volume ) )
...@@ -1510,7 +1503,6 @@ static int Volume( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1510,7 +1503,6 @@ static int Volume( vlc_object_t *p_this, char const *psz_cmd,
osd_Volume( p_this ); osd_Volume( p_this );
msg_rc( STATUS_CHANGE "( audio volume: %d )", i_volume ); msg_rc( STATUS_CHANGE "( audio volume: %d )", i_volume );
} }
}
else else
{ {
/* Get. */ /* Get. */
......
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