summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-03-14 13:27:57 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-03-14 13:27:57 +0100
commit07dc53331e62b29cc7659a23de4d7348f4788bd7 (patch)
treefec0a02cb25213ba171ea5646db88891fa1b1ea8 /menu.c
parent510a205c31f6e39171e85e2704cca8e9404c99bf (diff)
downloadvdr-07dc53331e62b29cc7659a23de4d7348f4788bd7.tar.gz
vdr-07dc53331e62b29cc7659a23de4d7348f4788bd7.tar.bz2
Removed cSchedule::GetEventNumber() and cSchedule::NumEvents()
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index 72030664..4fdb994b 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.296 2004/03/14 10:31:13 kls Exp $
+ * $Id: menu.c 1.297 2004/03/14 13:24:02 kls Exp $
*/
#include "menu.h"
@@ -1380,10 +1380,8 @@ void cMenuSchedule::PrepareSchedule(cChannel *Channel)
const cSchedule *Schedule = schedules->GetSchedule(Channel->GetChannelID());
if (Schedule) {
const cEvent *PresentEvent = Schedule->GetPresentEvent(Channel->Number() == cDevice::CurrentChannel());
- int num = Schedule->NumEvents();
time_t now = time(NULL) - Setup.EPGLinger * 60;
- for (int a = 0; a < num; a++) {
- const cEvent *Event = Schedule->GetEventNumber(a);
+ for (const cEvent *Event = Schedule->Events()->First(); Event; Event = Schedule->Events()->Next(Event)) {
if (Event->EndTime() > now || Event == PresentEvent)
Add(new cMenuScheduleItem(Event), Event == PresentEvent);
}