summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY2
-rw-r--r--eit.c5
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'
diff --git a/HISTORY b/HISTORY
index c4c98ad6..68db5baa 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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).
diff --git a/eit.c b/eit.c
index 9875f99b..2426234a 100644
--- a/eit.c
+++ b/eit.c
@@ -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) {