summaryrefslogtreecommitdiff
path: root/epg_item.c
diff options
context:
space:
mode:
Diffstat (limited to 'epg_item.c')
-rw-r--r--epg_item.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/epg_item.c b/epg_item.c
index 8ce25bb..f92a01d 100644
--- a/epg_item.c
+++ b/epg_item.c
@@ -63,10 +63,17 @@ bool cMenuMyScheduleItem::Update(bool Force)
const cChannel* channel = zapChannel->GetChannel();
eTimerMatch OldTimerMatch = timerMatch;
- cTimer* hasMatch = NULL;
+#if APIVERSNUM >= 20301
+ LOCK_TIMERS_READ
+ const cTimer* hasMatch = NULL;
+ if (event)
+ hasMatch = Timers->GetMatch(event, &timerMatch);
+#else
+ cTimer* hasMatch = NULL;
if (event)
hasMatch = Timers.GetMatch(event, &timerMatch);
+#endif
if (Force || timerMatch != OldTimerMatch)
{