diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2011-06-13 14:48:41 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2011-06-13 14:48:41 +0200 |
commit | 263dc295089a2accc385c87c23b177314d65acea (patch) | |
tree | 9e3ec03a06e01758eec7863ec17d3fb8cbcf589e /config.c | |
parent | 61a9b0940378e395915048d7021706aa51714556 (diff) | |
download | vdr-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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |