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

RC (old): fix muting

parent 297280a2
...@@ -1498,10 +1498,9 @@ static int Volume( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1498,10 +1498,9 @@ 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 == 0 )
aout_MuteToggle( p_playlist );
if( !aout_VolumeSet( p_playlist, i_volume ) ) if( !aout_VolumeSet( p_playlist, i_volume ) )
i_error = VLC_SUCCESS; i_error = VLC_SUCCESS;
aout_MuteSet( p_playlist, i_volume == 0 );
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 );
} }
......
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