diff options
Diffstat (limited to 'menu_main.c')
-rw-r--r-- | menu_main.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/menu_main.c b/menu_main.c index e776599..9b541dc 100644 --- a/menu_main.c +++ b/menu_main.c @@ -174,11 +174,11 @@ void cMenuSearchMain::PrepareSchedule(const cChannel *Channel) } } -bool cMenuSearchMain::Update(const cTimers* vdrtimers) +bool cMenuSearchMain::Update(void) { bool result = false; for (cOsdItem *item = First(); item; item = Next(item)) { - if (item->Selectable() && ((cMenuMyScheduleItem *)item)->Update(vdrtimers)) + if (item->Selectable() && ((cMenuMyScheduleItem *)item)->Update()) result = true; } return result; @@ -280,7 +280,7 @@ eOSState cMenuSearchMain::Record(void) if (HasSubMenu()) CloseSubMenu(); - if (Update(vdrtimers)) + if (Update()) Display(); SetHelpKeys(); } @@ -599,12 +599,6 @@ eOSState cMenuSearchMain::ProcessKey(eKeys Key) const cChannel *ch = cMenuWhatsOnSearch::ScheduleChannel(); InWhatsOnMenu = false; InFavoritesMenu = false; -#if VDRVERSNUM > 20300 - LOCK_TIMERS_READ; - const cTimers *vdrtimers = Timers; -#else - cTimers *vdrtimers = &Timers; -#endif if (ch) { // when switch from the other menus to the schedule, try to keep the same time if (cMenuWhatsOnSearch::shiftTime) @@ -621,7 +615,7 @@ eOSState cMenuSearchMain::ProcessKey(eKeys Key) } Display(); } - else if ((HadSubMenu || gl_TimerProgged) && Update(vdrtimers)) + else if ((HadSubMenu || gl_TimerProgged) && Update()) { if (gl_TimerProgged) // when using epgsearch's timer edit menu, update is delayed because of SVDRP { |