diff --git a/CONTRIBUTORS b/CONTRIBUTORS index a2988366..89b60fd1 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2314,6 +2314,7 @@ Tobias Bratfisch for optimizing cNitFilter::Process() for reducing the number of time(NULL) calls in vdr.c's main loop to a single call for improving efficiency of cEIT::cEIT() + for fixing the use of time_t in cEIT::cEIT() Bruno Roussel for translating OSD texts to the French language diff --git a/HISTORY b/HISTORY index 427841ae..0425e968 100644 --- a/HISTORY +++ b/HISTORY @@ -6094,3 +6094,4 @@ Video Disk Recorder Revision History - Added a note to cTsToPes::GetPes() about having to call it repeatedly, once it has returned a non-NULL value. - Added MPEG 1 handling to remux.c (thanks to Ales Jurik). +- Fixed use of time_t in cEIT::cEIT() (thanks to Tobias Bratfisch). diff --git a/eit.c b/eit.c index b78c1179..8e8dd490 100644 --- a/eit.c +++ b/eit.c @@ -8,7 +8,7 @@ * Robert Schneider and Rolf Hakenes . * Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg . * - * $Id: eit.c 2.3 2009/04/11 10:03:24 kls Exp $ + * $Id: eit.c 2.4 2009/05/10 14:47:31 kls Exp $ */ #include "eit.h" @@ -49,7 +49,7 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo SI::EIT::Event SiEitEvent; for (SI::Loop::Iterator it; eventLoop.getNext(SiEitEvent, it); ) { bool ExternalData = false; - int StartTime = SiEitEvent.getStartTime(); + time_t StartTime = SiEitEvent.getStartTime(); int Duration = SiEitEvent.getDuration(); // 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 (StartTime == 0 || StartTime > 0 && Duration == 0)