diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-12-27 14:39:14 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-12-27 14:39:14 +0100 |
commit | 1314d03411769215c4ce1d62a8a847c9d3e58a7c (patch) | |
tree | 7ec47de4083ee266c8e5e41976fcebb7d93039fe /timers.c | |
parent | 0b3d9a95fdeb4141fa223a221f7120a44e3c7057 (diff) | |
download | vdr-1314d03411769215c4ce1d62a8a847c9d3e58a7c.tar.gz vdr-1314d03411769215c4ce1d62a8a847c9d3e58a7c.tar.bz2 |
cTimer no longer has its own 'schedule' member
Diffstat (limited to 'timers.c')
-rw-r--r-- | timers.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.c 1.36 2005/09/09 15:22:33 kls Exp $ + * $Id: timers.c 1.37 2005/12/27 14:33:14 kls Exp $ */ #include "timers.h" @@ -363,7 +363,7 @@ bool cTimer::Matches(time_t t, bool Directly) const } if (HasFlags(tfActive)) { - if (HasFlags(tfVps) && !Directly && event && event->Vps() && schedule && schedule->PresentSeenWithin(30)) { + if (HasFlags(tfVps) && !Directly && event && event->Vps() && event->Schedule() && event->Schedule()->PresentSeenWithin(30)) { startTime = event->StartTime(); stopTime = event->EndTime(); return event->IsRunning(true); @@ -425,7 +425,7 @@ time_t cTimer::StopTime(void) const return stopTime; } -void cTimer::SetEvent(const cSchedule *Schedule, const cEvent *Event) +void cTimer::SetEvent(const cEvent *Event) { if (event != Event) { //XXX TODO check event data, too??? if (Event) { @@ -436,7 +436,6 @@ void cTimer::SetEvent(const cSchedule *Schedule, const cEvent *Event) } else isyslog("timer %s set to no event", *ToDescr()); - schedule = Event ? Schedule : NULL; event = Event; } } @@ -629,7 +628,7 @@ void cTimers::SetEvents(void) } if (Event && Event->EndTime() < now - EXPIRELATENCY && !Event->IsRunning()) Event = NULL; - ti->SetEvent(Schedule, Event); + ti->SetEvent(Event); } } } |