1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed use of time_t in cEIT::cEIT()

This commit is contained in:
Klaus Schmidinger 2009-05-10 14:55:15 +02:00
parent aae1aa5271
commit 8a7dbd1e56
3 changed files with 4 additions and 2 deletions

View File

@ -2314,6 +2314,7 @@ Tobias Bratfisch <tobias@reel-multimedia.com>
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 <bruno.roussel@free.fr>
for translating OSD texts to the French language

View File

@ -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).

4
eit.c
View File

@ -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 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)