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 /eit.c | |
parent | e3e40a14f30941586536426231a824519cade6ac (diff) | |
download | vdr-425daa4ca5d2df5eb803fe52b1e94e6490edbd4e.tar.gz vdr-425daa4ca5d2df5eb803fe52b1e94e6490edbd4e.tar.bz2 |
Now dropping EPG events that have a zero start time or duration
Diffstat (limited to 'eit.c')
-rw-r--r-- | eit.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) { |