mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Not hashing events with StartTime < 0
This commit is contained in:
parent
1f631bf667
commit
bce13e7148
8
epg.c
8
epg.c
@ -7,7 +7,7 @@
|
|||||||
* Original version (as used in VDR before 1.3.0) written by
|
* Original version (as used in VDR before 1.3.0) written by
|
||||||
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
* 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"
|
#include "epg.h"
|
||||||
@ -670,13 +670,15 @@ void cSchedule::DelEvent(cEvent *Event)
|
|||||||
void cSchedule::HashEvent(cEvent *Event)
|
void cSchedule::HashEvent(cEvent *Event)
|
||||||
{
|
{
|
||||||
eventsHashID.Add(Event, Event->EventID());
|
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)
|
void cSchedule::UnhashEvent(cEvent *Event)
|
||||||
{
|
{
|
||||||
eventsHashID.Del(Event, Event->EventID());
|
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
|
const cEvent *cSchedule::GetPresentEvent(bool CheckRunningStatus) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user