diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-26 10:27:06 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-26 10:27:06 +0200 |
commit | 425daa4ca5d2df5eb803fe52b1e94e6490edbd4e (patch) | |
tree | 8a2311729ad8591e25e902c0f8eaa15257c19372 | |
parent | e3e40a14f30941586536426231a824519cade6ac (diff) | |
download | vdr-425daa4ca5d2df5eb803fe52b1e94e6490edbd4e.tar.gz vdr-425daa4ca5d2df5eb803fe52b1e94e6490edbd4e.tar.bz2 |
Now dropping EPG events that have a zero start time or duration
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | eit.c | 5 |
3 files changed, 7 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index d9ffd84b..c9025c72 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -564,6 +564,7 @@ Oliver Endriss <o.endriss@gmx.de> for reporting a problem with the name of the remote control for which the keys are being learned overwriting the date/time in the 'classic' skin for making cDvbOsd check available OSD memory at runtime + for making cEIT::cEIT() drop EPG events that have a zero start time or duration Reinhard Walter Buchner <rw.buchner@freenet.de> for adding some satellites to 'sources.conf' @@ -3557,3 +3557,5 @@ Video Disk Recorder Revision History written to by a timer (thanks to Sascha Volkenandt for pointing out this one). - Pressing the "Play" key in live viewing mode now resumes a previous replay session (thanks to Mirko Dölle). +- Now dropping EPG events that have a zero start time or duration (thanks to + Oliver Endriss). @@ -8,7 +8,7 @@ * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>. * - * $Id: eit.c 1.104 2005/05/15 10:36:04 kls Exp $ + * $Id: eit.c 1.105 2005/05/26 10:25:41 kls Exp $ */ #include "eit.h" @@ -48,6 +48,9 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data) SI::EIT::Event SiEitEvent; for (SI::Loop::Iterator it; eventLoop.getNext(SiEitEvent, it); ) { + // Drop bogus events. + if (SiEitEvent.getStartTime() == 0 || SiEitEvent.getDuration() == 0) + continue; Empty = false; cEvent *pEvent = (cEvent *)pSchedule->GetEvent(SiEitEvent.getEventId(), SiEitEvent.getStartTime()); if (!pEvent) { |