From b2247ebb9bfb6ce4815b4e74dab2307ee304bfc9 Mon Sep 17 00:00:00 2001 From: jojo61 Date: Sat, 27 Mar 2021 18:03:15 +0100 Subject: [PATCH] Fix mute when switching channel --- softhdcuvid.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/softhdcuvid.cpp b/softhdcuvid.cpp index 1d00d15..02169b0 100644 --- a/softhdcuvid.cpp +++ b/softhdcuvid.cpp @@ -63,7 +63,7 @@ extern void ToggleLUT(); /// vdr-plugin version number. /// Makefile extracts the version number for generating the file name /// for the distribution archive. -static const char *const VERSION = "3.4.2" +static const char *const VERSION = "3.4.3" #ifdef GIT_REV "-GIT" GIT_REV #endif @@ -2645,7 +2645,8 @@ bool cSoftHdDevice::SetPlayMode(ePlayMode play_mode) Resume(); SuspendMode = NOT_SUSPENDED; } - SetVolume(cDevice::CurrentVolume(), true); + if (!cDevice::IsMute()) + SetVolume(cDevice::CurrentVolume(), true); return::SetPlayMode(play_mode); }