[vlc-commits] RC (old): fix muting
Rémi Denis-Courmont
git at videolan.org
Tue Jul 3 17:04:15 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 1 20:57:53 2012 +0300| [18a70b6da841a65cd25cbf1395d4c527f489e97c] | committer: Rémi Denis-Courmont
RC (old): fix muting
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18a70b6da841a65cd25cbf1395d4c527f489e97c
---
modules/control/rc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/control/rc.c b/modules/control/rc.c
index 360ece2..d7db652 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -1498,10 +1498,9 @@ static int Volume( vlc_object_t *p_this, char const *psz_cmd,
{
/* Set. */
audio_volume_t i_volume = atoi( newval.psz_string );
- if( i_volume == 0 )
- aout_MuteToggle( p_playlist );
if( !aout_VolumeSet( p_playlist, i_volume ) )
i_error = VLC_SUCCESS;
+ aout_MuteSet( p_playlist, i_volume == 0 );
osd_Volume( p_this );
msg_rc( STATUS_CHANGE "( audio volume: %d )", i_volume );
}
More information about the vlc-commits
mailing list