summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-03-26 13:45:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-03-26 13:45:17 +0200
commit45467088419644481dd62c8e65ba5b338cc2a419 (patch)
tree210c00b6342fc16aba7ac3d2f773fba3225191f3 /epg.c
parent22b60d96108b98f11af7fcf27f755637e2d106c5 (diff)
downloadvdr-45467088419644481dd62c8e65ba5b338cc2a419.tar.gz
vdr-45467088419644481dd62c8e65ba5b338cc2a419.tar.bz2
Ignoring 'version' in EPG data when reading from 'epg.data' or SVDRP/PUTE
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epg.c b/epg.c
index 9141f437..1530d8d5 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.67 2006/03/25 12:48:34 kls Exp $
+ * $Id: epg.c 1.68 2006/03/26 13:44:23 kls Exp $
*/
#include "epg.h"
@@ -320,7 +320,7 @@ bool cEvent::Read(FILE *f, cSchedule *Schedule)
time_t StartTime;
int Duration;
unsigned int TableID = 0;
- unsigned int Version = 0xFF;
+ unsigned int Version = 0xFF; // actual value is ignored
int n = sscanf(t, "%u %ld %d %X %X", &EventID, &StartTime, &Duration, &TableID, &Version);
if (n >= 3 && n <= 5) {
Event = (cEvent *)Schedule->GetEvent(EventID, StartTime);
@@ -331,8 +331,6 @@ bool cEvent::Read(FILE *f, cSchedule *Schedule)
Event = newEvent = new cEvent(EventID);
if (Event) {
Event->SetTableID(TableID);
- if (TableID >= 0x50) // makes sure the running status flag is set from the actual data stream
- Event->SetVersion(Version);
Event->SetStartTime(StartTime);
Event->SetDuration(Duration);
if (newEvent)