summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-25 17:05:48 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-25 17:05:48 +0100
commit450c7ef1af67a308780f1df920939b5e8f2edf9b (patch)
treeba425e0772ad297f98712a67385c423cfdfc8a6b /recording.c
parent8dec381664bec6cf3090d2414b615c4d51374860 (diff)
downloadvdr-450c7ef1af67a308780f1df920939b5e8f2edf9b.tar.gz
vdr-450c7ef1af67a308780f1df920939b5e8f2edf9b.tar.bz2
Parsing 'E' record when reading 'info.vdr'
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/recording.c b/recording.c
index 535d02ea..d6f30879 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.138 2006/02/25 11:49:48 kls Exp $
+ * $Id: recording.c 1.139 2006/02/25 17:05:48 kls Exp $
*/
#include "recording.h"
@@ -337,6 +337,22 @@ bool cRecordingInfo::Read(FILE *f)
channelID = tChannelID::FromString(t);
}
break;
+ case 'E': {
+ unsigned int EventID;
+ time_t StartTime;
+ int Duration;
+ unsigned int TableID = 0;
+ unsigned int Version = 0xFF;
+ int n = sscanf(t, "%u %ld %d %X %X", &EventID, &StartTime, &Duration, &TableID, &Version);
+ if (n >= 3 && n <= 5) {
+ ownEvent->SetEventID(EventID);
+ ownEvent->SetStartTime(StartTime);
+ ownEvent->SetDuration(Duration);
+ ownEvent->SetTableID(TableID);
+ ownEvent->SetVersion(Version);
+ }
+ }
+ break;
case '@': free(aux);
aux = strdup(t);
break;