summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-05-29 10:26:54 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-05-29 10:26:54 +0200
commitbce13e7148b38fad29357df304efbd7789885bb2 (patch)
treee28b0d0c85cf3ece176dbe5e86811102f06309ac /epg.c
parent1f631bf6673d3159abf58aa670c92cdd34190b64 (diff)
downloadvdr-bce13e7148b38fad29357df304efbd7789885bb2.tar.gz
vdr-bce13e7148b38fad29357df304efbd7789885bb2.tar.bz2
Not hashing events with StartTime < 0
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/epg.c b/epg.c
index 841e02f2..29e2b825 100644
--- a/epg.c
+++ b/epg.c
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.c 1.33 2005/05/28 13:17:20 kls Exp $
+ * $Id: epg.c 1.34 2005/05/29 10:26:54 kls Exp $
*/
#include "epg.h"
@@ -670,13 +670,15 @@ void cSchedule::DelEvent(cEvent *Event)
void cSchedule::HashEvent(cEvent *Event)
{
eventsHashID.Add(Event, Event->EventID());
- eventsHashStartTime.Add(Event, Event->StartTime());
+ if (Event->StartTime() > 0) // 'StartTime < 0' is apparently used with NVOD channels
+ eventsHashStartTime.Add(Event, Event->StartTime());
}
void cSchedule::UnhashEvent(cEvent *Event)
{
eventsHashID.Del(Event, Event->EventID());
- eventsHashStartTime.Del(Event, Event->StartTime());
+ if (Event->StartTime() > 0) // 'StartTime < 0' is apparently used with NVOD channels
+ eventsHashStartTime.Del(Event, Event->StartTime());
}
const cEvent *cSchedule::GetPresentEvent(bool CheckRunningStatus) const