summaryrefslogtreecommitdiff
path: root/recmenumanager.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-03-31 18:07:08 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-01-27 11:34:31 +0100
commitf5920124428d23f9d1f55342f82c47f4e86e7a6c (patch)
tree0fc1431c5097aa4402cfe1e5411ee145e69e1eb6 /recmenumanager.c
parentc6d01ba60b75d9bb297b646895e14e9df1835807 (diff)
downloadvdr-plugin-tvguide-f5920124428d23f9d1f55342f82c47f4e86e7a6c.tar.gz
vdr-plugin-tvguide-f5920124428d23f9d1f55342f82c47f4e86e7a6c.tar.bz2
Eliminate deadlock in "EditTimer"
Diffstat (limited to 'recmenumanager.c')
-rw-r--r--recmenumanager.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/recmenumanager.c b/recmenumanager.c
index e6ff269..1c1a9e2 100644
--- a/recmenumanager.c
+++ b/recmenumanager.c
@@ -217,8 +217,11 @@ eOSState cRecMenuManager::StateMachine(eRecMenuState nextState) {
case rmsEditTimer: {
//edit timer for active event
#if VDRVERSNUM >= 20301
+ const cTimer *timer;
+ {
LOCK_TIMERS_READ;
- const cTimer *timer = recManager->GetTimerForEvent(event);
+ timer = recManager->GetTimerForEvent(event);
+ }
#else
cTimer *timer = recManager->GetTimerForEvent(event);
#endif