summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--osdmenu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/osdmenu.c b/osdmenu.c
index ded3055..4460a1d 100644
--- a/osdmenu.c
+++ b/osdmenu.c
@@ -482,7 +482,11 @@ void myOsdMenu::LoadSchedules(int shift) {
if( !isChannelInGroup( Channel->Index(), CurrentGroup ) )
continue;
+#if APIVERSNUM >= 20301
+ const cSchedule *Schedule = schedules->GetSchedule( Channel );
+#else
const cSchedule *Schedule = schedules->GetSchedule( Channel->GetChannelID() );
+#endif
if(Schedule) {
// event from now or any other date (next)
const cEvent *Event = next ? Schedule->GetEventAround(t) : Schedule->GetPresentEvent();