Commit 5da82501 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Jean-Baptiste Kempf

skins2: fix mute behaviour

The skins2 code checked for the audio volume to be zero. However the audio is muted with by caling
the function aout_SetMute() or aout_ToggleMute(). Use aout_IsMuted() to test for muted audio.
(cherry picked from commit 4f96ae4a9bf70543b421e1b039cad0356a696b92)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1dac0eb8
......@@ -727,7 +727,8 @@ void VlcProc::on_volume_changed( vlc_object_t* p_obj, vlc_value_t newVal )
audio_volume_t volume = aout_VolumeGet( pPlaylist );
SET_VOLUME( m_cVarVolume, volume, false );
SET_BOOL( m_cVarMute, volume == 0 );
bool b_is_muted = aout_IsMuted( VLC_OBJECT(pPlaylist) );
SET_BOOL( m_cVarMute, b_is_muted );
}
void VlcProc::on_audio_filter_changed( vlc_object_t* p_obj, vlc_value_t newVal )
......@@ -831,7 +832,8 @@ void VlcProc::init_variables()
audio_volume_t volume = aout_VolumeGet( pPlaylist );
SET_VOLUME( m_cVarVolume, volume, false );
SET_BOOL( m_cVarMute, volume == 0 );
bool b_is_muted = aout_IsMuted( VLC_OBJECT(pPlaylist) );
SET_BOOL( m_cVarMute, b_is_muted );
update_equalizer();
}
......
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