[vlc-devel] commit: Fix libvlc_audio_set_mute ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Feb 14 10:58:26 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 14 11:58:14 2010 +0200| [512924267fb43172161cebe55de3ff674dae63fc] | committer: Rémi Denis-Courmont
Fix libvlc_audio_set_mute
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=512924267fb43172161cebe55de3ff674dae63fc
---
src/control/audio.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/control/audio.c b/src/control/audio.c
index a213ab1..2c5ed8a 100644
--- a/src/control/audio.c
+++ b/src/control/audio.c
@@ -315,9 +315,7 @@ int libvlc_audio_get_mute( libvlc_media_player_t *mp )
void libvlc_audio_set_mute( libvlc_media_player_t *mp, int mute )
{
-#warning Not quite thread-safe
- if ( !mute != !libvlc_audio_get_mute( mp ) )
- aout_ToggleMute( mp, NULL );
+ aout_SetMute( VLC_OBJECT(mp), NULL, !!mute );
}
/*****************************************************************************
More information about the vlc-devel
mailing list