summaryrefslogtreecommitdiff
path: root/epg_item.c
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.zaphistory@schirrmacher.eu>2015-12-09 20:09:19 +0100
committerMartin Schirrmacher <vdr.zaphistory@schirrmacher.eu>2015-12-09 20:09:19 +0100
commit484b48a61c841a72c12c3a347bbafd0b96826da3 (patch)
tree09d1e1825125d11d33529e275552563795d049e8 /epg_item.c
parent111b0cc69414d8025a66b3325a65d7286be87df7 (diff)
downloadvdr-plugin-zaphistory-master.tar.gz
vdr-plugin-zaphistory-master.tar.bz2
add support for vdr-2.3.1HEADmaster
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)
{