diff options
Diffstat (limited to 'epg_item.c')
-rw-r--r-- | epg_item.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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) { |