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

Fix libvlc_audio_set_mute

parent 1341c129
......@@ -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 );
}
/*****************************************************************************
......
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