From 0aa10ae9a143861a1cfd3abbed9e3478923891ef Mon Sep 17 00:00:00 2001 From: pjft Date: Mon, 26 Feb 2024 10:07:54 +0000 Subject: [PATCH] Update VLC Mute logic This updates it to support mixer passthrough, and accommodate cases where the mute function wasn't supported. --- es-core/src/components/VideoVlcComponent.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/es-core/src/components/VideoVlcComponent.cpp b/es-core/src/components/VideoVlcComponent.cpp index e34470f50..4ef7500d0 100644 --- a/es-core/src/components/VideoVlcComponent.cpp +++ b/es-core/src/components/VideoVlcComponent.cpp @@ -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"); + } }