summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-09 12:52:41 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-09 12:52:41 +0200
commitde45b51473daaa313dda61d4d86c3fb970d51cd8 (patch)
tree2c7473b4915f1f77085dc9e9a67528c963ee0133 /config.c
parent9d509c37e712974d653b8ccd2ceddfda7c9cccfe (diff)
downloadvdr-de45b51473daaa313dda61d4d86c3fb970d51cd8.tar.gz
vdr-de45b51473daaa313dda61d4d86c3fb970d51cd8.tar.bz2
Implemented 'Multi Speed Mode'
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 e3957ac9..171400b6 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.67 2001/09/08 14:12:43 kls Exp $
+ * $Id: config.c 1.68 2001/09/08 14:59:38 kls Exp $
*/
#include "config.h"
@@ -812,6 +812,7 @@ cSetup::cSetup(void)
MaxVideoFileSize = MAXVIDEOFILESIZE;
MinEventTimeout = 30;
MinUserInactivity = 120;
+ MultiSpeedMode = 0;
CurrentChannel = -1;
}
@@ -849,6 +850,7 @@ bool cSetup::Parse(char *s)
else if (!strcasecmp(Name, "MaxVideoFileSize")) MaxVideoFileSize = atoi(Value);
else if (!strcasecmp(Name, "MinEventTimeout")) MinEventTimeout = atoi(Value);
else if (!strcasecmp(Name, "MinUserInactivity")) MinUserInactivity = atoi(Value);
+ else if (!strcasecmp(Name, "MultiSpeedMode")) MultiSpeedMode = atoi(Value);
else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value);
else
return false;
@@ -921,6 +923,7 @@ bool cSetup::Save(const char *FileName)
fprintf(f, "MaxVideoFileSize = %d\n", MaxVideoFileSize);
fprintf(f, "MinEventTimeout = %d\n", MinEventTimeout);
fprintf(f, "MinUserInactivity = %d\n", MinUserInactivity);
+ fprintf(f, "MultiSpeedMode = %d\n", MultiSpeedMode);
fprintf(f, "CurrentChannel = %d\n", CurrentChannel);
f.Close();
isyslog(LOG_INFO, "saved setup to %s", FileName);