summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-05-16 12:58:04 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-05-16 12:58:04 +0200
commit38c81597308acbb1287c3b5115984a0208ce24ff (patch)
tree38ba0dcc36a59ef8849bb26e09cbb55a701302ff /config.c
parent26b43bde81fc9e3fc3b8f7df1de21acd107a6ed8 (diff)
downloadvdr-38c81597308acbb1287c3b5115984a0208ce24ff.tar.gz
vdr-38c81597308acbb1287c3b5115984a0208ce24ff.tar.bz2
Fixed setting the time from the DVB data stream1.3.7
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.c b/config.c
index b89df8b6..ef362f6d 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 1.126 2004/05/16 10:08:09 kls Exp $
+ * $Id: config.c 1.127 2004/05/16 12:43:55 kls Exp $
*/
#include "config.h"
@@ -258,6 +258,7 @@ cSetup::cSetup(void)
LnbFrequHi = 10600;
DiSEqC = 0;
SetSystemTime = 0;
+ TimeSource = 0;
TimeTransponder = 0;
MarginStart = 2;
MarginStop = 10;
@@ -410,6 +411,7 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "LnbFrequHi")) LnbFrequHi = atoi(Value);
else if (!strcasecmp(Name, "DiSEqC")) DiSEqC = atoi(Value);
else if (!strcasecmp(Name, "SetSystemTime")) SetSystemTime = atoi(Value);
+ else if (!strcasecmp(Name, "TimeSource")) TimeSource = cSource::FromString(Value);
else if (!strcasecmp(Name, "TimeTransponder")) TimeTransponder = atoi(Value);
else if (!strcasecmp(Name, "MarginStart")) MarginStart = atoi(Value);
else if (!strcasecmp(Name, "MarginStop")) MarginStop = atoi(Value);
@@ -469,6 +471,7 @@ bool cSetup::Save(void)
Store("LnbFrequHi", LnbFrequHi);
Store("DiSEqC", DiSEqC);
Store("SetSystemTime", SetSystemTime);
+ Store("TimeSource", cSource::ToString(TimeSource));
Store("TimeTransponder", TimeTransponder);
Store("MarginStart", MarginStart);
Store("MarginStop", MarginStop);