summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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