1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

Fix mute when switching channel

This commit is contained in:
jojo61 2021-03-27 18:03:15 +01:00
parent 8c89787269
commit b2247ebb9b

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