diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-25 13:52:38 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-25 13:52:38 +0200 |
commit | 0525d1bb780981e63214973b9eb2d60bd84d1dca (patch) | |
tree | 09d763d2333643b6570b9f36450d5e9b22b55035 /config.c | |
parent | 14d3933d91af23a9d79c083163fe6f0281475001 (diff) | |
download | vdr-0525d1bb780981e63214973b9eb2d60bd84d1dca.tar.gz vdr-0525d1bb780981e63214973b9eb2d60bd84d1dca.tar.bz2 |
New Setup parameter MaxVideoFileSize
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.55 2001/08/17 13:02:01 kls Exp $ + * $Id: config.c 1.56 2001/08/25 13:37:37 kls Exp $ */ #include "config.h" @@ -783,6 +783,7 @@ cSetup::cSetup(void) ChannelInfoPos = 0; OSDwidth = 52; OSDheight = 18; + MaxVideoFileSize = MAXVIDEOFILESIZE; CurrentChannel = -1; } @@ -814,6 +815,7 @@ bool cSetup::Parse(char *s) else if (!strcasecmp(Name, "ChannelInfoPos")) ChannelInfoPos = atoi(Value); else if (!strcasecmp(Name, "OSDwidth")) OSDwidth = atoi(Value); else if (!strcasecmp(Name, "OSDheight")) OSDheight = atoi(Value); + else if (!strcasecmp(Name, "MaxVideoFileSize")) MaxVideoFileSize = atoi(Value); else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value); else return false; @@ -880,6 +882,7 @@ bool cSetup::Save(const char *FileName) fprintf(f, "ChannelInfoPos = %d\n", ChannelInfoPos); fprintf(f, "OSDwidth = %d\n", OSDwidth); fprintf(f, "OSDheight = %d\n", OSDheight); + fprintf(f, "MaxVideoFileSize = %d\n", MaxVideoFileSize); fprintf(f, "CurrentChannel = %d\n", CurrentChannel); f.Close(); isyslog(LOG_INFO, "saved setup to %s", FileName); |