Skip to content

Commit

Permalink
Update VLC Mute logic
Browse files Browse the repository at this point in the history
This updates it to support mixer passthrough, and accommodate cases where the mute function wasn't supported.
  • Loading branch information
pjft committed Feb 26, 2024
1 parent fc66fd7 commit 0aa10ae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions es-core/src/components/VideoVlcComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

0 comments on commit 0aa10ae

Please sign in to comment.