Skip to content

Commit

Permalink
Merge pull request #867 from pjft/fix-vlc-mute
Browse files Browse the repository at this point in the history
Update VLC Mute logic
  • Loading branch information
pjft authored Feb 26, 2024
2 parents fc66fd7 + 0aa10ae commit 95ba158
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 95ba158

Please sign in to comment.