Fix mute when switching channel

This commit is contained in:
jojo61 2021-03-27 18:03:15 +01:00
parent 8c89787269
commit b2247ebb9b
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}