mirror of
https://github.com/RetroPie/EmulationStation.git
synced 2024-05-15 19:04:50 -04:00
Update VLC Mute logic
This updates it to support mixer passthrough, and accommodate cases where the mute function wasn't supported.
This commit is contained in:
parent
fc66fd78ac
commit
0aa10ae9a1
|
@ -344,8 +344,7 @@ void VideoVlcComponent::stopVideo()
|
|||
void VideoVlcComponent::setMuteMode()
|
||||
{
|
||||
Settings *cfg = Settings::getInstance();
|
||||
if (!cfg->getBool("VideoAudio") || (cfg->getBool("ScreenSaverVideoMute") && mScreensaverMode))
|
||||
libvlc_audio_set_mute(mMediaPlayer, 1);
|
||||
else
|
||||
libvlc_audio_set_mute(mMediaPlayer, 0);
|
||||
if (!cfg->getBool("VideoAudio") || (cfg->getBool("ScreenSaverVideoMute") && mScreensaverMode)) {
|
||||
libvlc_media_add_option(mMedia, ":no-audio");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue