summaryrefslogtreecommitdiff
path: root/skinlcars.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-05-18 16:47:29 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2020-05-18 16:47:29 +0200
commit196785ff054a3236747ac8ad0302300c052d377a (patch)
tree12c4559386bc990b9e64804e80268f3387e5899d /skinlcars.c
parentdd9dd76722fac5902b9237d836bb1b7bce9bcbae (diff)
downloadvdr-196785ff054a3236747ac8ad0302300c052d377a.tar.gz
vdr-196785ff054a3236747ac8ad0302300c052d377a.tar.bz2
Fixed a possible crash in case replay is started and stopped in rapid sequence2.4.2
Diffstat (limited to 'skinlcars.c')
-rw-r--r--skinlcars.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/skinlcars.c b/skinlcars.c
index aedca5dc..0f431631 100644
--- a/skinlcars.c
+++ b/skinlcars.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinlcars.c 4.6 2017/11/08 10:10:30 kls Exp $
+ * $Id: skinlcars.c 4.7 2020/05/18 16:47:29 kls Exp $
*/
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures,
@@ -1741,12 +1741,13 @@ void cSkinLCARSDisplayMenu::Flush(void)
{
if (MenuCategory() == mcMain) {
cDevice *Device = cDevice::PrimaryDevice();
+ cMutexLock ControlMutexLock;
if (!Device->Replaying() || Device->Transferring()) {
LOCK_CHANNELS_READ;
const cChannel *Channel = Channels->GetByNumber(cDevice::PrimaryDevice()->CurrentChannel());
DrawLive(Channel);
}
- else if (cControl *Control = cControl::Control(true))
+ else if (cControl *Control = cControl::Control(ControlMutexLock, true))
DrawPlay(Control);
DrawTimers();
DrawDevices();