summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-06-13 14:48:41 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-06-13 14:48:41 +0200
commit263dc295089a2accc385c87c23b177314d65acea (patch)
tree9e3ec03a06e01758eec7863ec17d3fb8cbcf589e /config.c
parent61a9b0940378e395915048d7021706aa51714556 (diff)
downloadvdr-263dc295089a2accc385c87c23b177314d65acea.tar.gz
vdr-263dc295089a2accc385c87c23b177314d65acea.tar.bz2
The initial channel is now stored by the channel ID in the setup.conf file
Diffstat (limited to 'config.c')
-rw-r--r--config.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/config.c b/config.c
index 73b11b18..6767b5c6 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 2.13 2010/06/06 10:06:43 kls Exp $
+ * $Id: config.c 2.14 2011/06/13 14:41:01 kls Exp $
*/
#include "config.h"
@@ -395,7 +395,7 @@ cSetup::cSetup(void)
CurrentChannel = -1;
CurrentVolume = MAXVOLUME;
CurrentDolby = 0;
- InitialChannel = 0;
+ // InitialChannel is initialized by constructor
InitialVolume = -1;
ChannelsWrap = 0;
EmergencyExit = 1;
@@ -404,6 +404,7 @@ cSetup::cSetup(void)
cSetup& cSetup::operator= (const cSetup &s)
{
memcpy(&__BeginData__, &s.__BeginData__, (char *)&s.__EndData__ - (char *)&s.__BeginData__);
+ InitialChannel = s.InitialChannel;
return *this;
}
@@ -586,7 +587,7 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value);
else if (!strcasecmp(Name, "CurrentVolume")) CurrentVolume = atoi(Value);
else if (!strcasecmp(Name, "CurrentDolby")) CurrentDolby = atoi(Value);
- else if (!strcasecmp(Name, "InitialChannel")) InitialChannel = atoi(Value);
+ else if (!strcasecmp(Name, "InitialChannel")) InitialChannel = Value;
else if (!strcasecmp(Name, "InitialVolume")) InitialVolume = atoi(Value);
else if (!strcasecmp(Name, "ChannelsWrap")) ChannelsWrap = atoi(Value);
else if (!strcasecmp(Name, "EmergencyExit")) EmergencyExit = atoi(Value);