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

aout: remove aout_MuteToggle()

parent 9a064546
......@@ -38,13 +38,4 @@ VLC_API int aout_MuteSet( vlc_object_t *, bool );
VLC_API int aout_MuteGet( vlc_object_t * );
#define aout_MuteGet(a) aout_MuteGet(VLC_OBJECT(a))
static inline int aout_MuteToggle (vlc_object_t *obj)
{
int val = aout_MuteGet (obj);
if (val >= 0)
val = aout_MuteSet (obj, !val);
return val;
}
#define aout_MuteToggle(a) aout_MuteToggle(VLC_OBJECT(a))
#endif /* _VLC_AOUT_H */
......@@ -249,7 +249,9 @@ void libvlc_audio_output_set_device_type( libvlc_media_player_t *mp,
void libvlc_audio_toggle_mute( libvlc_media_player_t *mp )
{
aout_MuteToggle( mp );
int mute = libvlc_audio_get_mute( mp );
if( mute != -1 )
libvlc_audio_set_mute( mp, !mute );
}
int libvlc_audio_get_mute( libvlc_media_player_t *mp )
......
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