summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-06-11 16:05:11 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-06-11 16:05:11 +0200
commit903a2d585033baba47288735a42e3e1146d6bfd6 (patch)
tree0b25ae297724007fb2d069df26449feb0ab0fa96 /eit.c
parent3513e3d07ed9b3794415975cb0b4099b5df951fe (diff)
downloadvdr-903a2d585033baba47288735a42e3e1146d6bfd6.tar.gz
vdr-903a2d585033baba47288735a42e3e1146d6bfd6.tar.bz2
Fixed dropping EPG events that have a zero start time or duration, in case it's an NVOD event
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eit.c b/eit.c
index a8ac9df2..ef21e327 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.107 2005/05/28 11:35:55 kls Exp $
+ * $Id: eit.c 1.108 2005/06/11 15:31:21 kls Exp $
*/
#include "eit.h"
@@ -48,8 +48,8 @@ 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)
+ // Drop bogus events - but keep NVOD reference events, where all bits of the start time field are set to 1, resulting in a negative number.
+ if (SiEitEvent.getStartTime() == 0 || SiEitEvent.getStartTime() > 0 && SiEitEvent.getDuration() == 0)
continue;
Empty = false;
cEvent *newEvent = NULL;