summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-01-29 11:31:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-01-29 11:31:58 +0100
commit251e04d25a9e8ae5ea92b87fc570aee473625c03 (patch)
treec6435092fa9449f05b5e485942fc75a8c070f82d /epg.c
parentf03ed68807b86529d20dffa6124527405ed75343 (diff)
downloadvdr-251e04d25a9e8ae5ea92b87fc570aee473625c03.tar.gz
vdr-251e04d25a9e8ae5ea92b87fc570aee473625c03.tar.bz2
When reading epg.data (or data from PUTE), the version number of events with table IDs smaller than 0x50 is now ignored
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epg.c b/epg.c
index 40cd3539..8cb39e81 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.53 2006/01/28 14:45:24 kls Exp $
+ * $Id: epg.c 1.54 2006/01/29 11:27:43 kls Exp $
*/
#include "epg.h"
@@ -309,7 +309,8 @@ bool cEvent::Read(FILE *f, cSchedule *Schedule)
Event = newEvent = new cEvent(EventID);
if (Event) {
Event->SetTableID(TableID);
- Event->SetVersion(Version);
+ 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)