summaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-03-08 13:02:38 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-01-27 11:29:38 +0100
commitcbc6f442648a0aea4b94d81176f044c642a7d2b0 (patch)
tree3bfdc0baebcbaec7845edcc521b4041e6a25035c /view.c
parent8287bb5f7deef757f38b3e2a4ed5a08a57881f7e (diff)
downloadvdr-plugin-tvguide-cbc6f442648a0aea4b94d81176f044c642a7d2b0.tar.gz
vdr-plugin-tvguide-cbc6f442648a0aea4b94d81176f044c642a7d2b0.tar.bz2
Compile under VDR 2.3.1
Diffstat (limited to 'view.c')
-rw-r--r--view.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/view.c b/view.c
index 7608c03..485ef36 100644
--- a/view.c
+++ b/view.c
@@ -120,7 +120,12 @@ void cView::DrawHeader(void) {
pixmapHeader->DrawText(cPoint(xText, ySubtitle), CutText(subTitle, textWidthMax, fontHeader).c_str(), theme.Color(clrFont), theme.Color(clrStatusHeader), fontHeader);
//REC Icon
eTimerMatch timerMatch=tmNone;
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ LOCK_TIMERS_READ;
+ const cTimer *ti;
+#else
cTimer *ti;
+#endif
if (!event)
return;
if (tvguideConfig.useRemoteTimers && pRemoteTimers) {
@@ -130,7 +135,12 @@ void cView::DrawHeader(void) {
timerMatch = (eTimerMatch)rtMatch.timerMatch;
ti = rtMatch.timer;
} else {
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ LOCK_TIMERS_READ;
+ ti=Timers->GetMatch(event, &timerMatch);
+#else
ti=Timers.GetMatch(event, &timerMatch);
+#endif
}
if (timerMatch == tmFull) {
cString recIconText(" REC ");