Commit 9781b846 authored by Filippo Carone's avatar Filippo Carone

Muting and unmuting functions implemented in the control interface

parent 0627647f
...@@ -56,12 +56,25 @@ void libvlc_audio_set_mute( libvlc_instance_t *p_instance, vlc_bool_t status, ...@@ -56,12 +56,25 @@ void libvlc_audio_set_mute( libvlc_instance_t *p_instance, vlc_bool_t status,
{ {
if ( status ) if ( status )
{ {
/// \todo /*
* Check if the volume is already muted
*/
if (! libvlc_audio_get_volume( p_instance, p_exception ) )
{
return;
}
aout_VolumeMute( p_instance->p_vlc, NULL );
return;
} }
else else
{ {
/* we need to get the volume back from the last registered level */ /*
/// \todo FIXME here * the aout_VolumeMute is a toggle function, so this is enough.
*/
aout_VolumeMute( p_instance->p_vlc, NULL );
return;
} }
} }
......
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