summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-06-16 14:31:14 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-06-16 14:31:14 +0200
commitd3f255e79ec8590728a34f6665bf2e2204b713c0 (patch)
tree335d0db9f90a706fe45f5fb0cde455c94399f43f /config.c
parent0af14457e0cb9f91dd2861814b8a2aae55a193be (diff)
downloadvdr-d3f255e79ec8590728a34f6665bf2e2204b713c0.tar.gz
vdr-d3f255e79ec8590728a34f6665bf2e2204b713c0.tar.bz2
Setup parameter for VideoFormat
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 bd3d83bf..b8c2d9f8 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.46 2001/06/02 13:57:25 kls Exp $
+ * $Id: config.c 1.47 2001/06/16 14:06:56 kls Exp $
*/
#include "config.h"
@@ -756,6 +756,7 @@ cSetup::cSetup(void)
PrimaryLimit = 0;
DefaultPriority = 50;
DefaultLifetime = 50;
+ VideoFormat = VIDEO_FORMAT_4_3;
CurrentChannel = -1;
}
@@ -781,6 +782,7 @@ bool cSetup::Parse(char *s)
else if (!strcasecmp(Name, "PrimaryLimit")) PrimaryLimit = atoi(Value);
else if (!strcasecmp(Name, "DefaultPriority")) DefaultPriority = atoi(Value);
else if (!strcasecmp(Name, "DefaultLifetime")) DefaultLifetime = atoi(Value);
+ else if (!strcasecmp(Name, "VideoFormat")) VideoFormat = atoi(Value);
else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value);
else
return false;
@@ -841,6 +843,7 @@ bool cSetup::Save(const char *FileName)
fprintf(f, "PrimaryLimit = %d\n", PrimaryLimit);
fprintf(f, "DefaultPriority = %d\n", DefaultPriority);
fprintf(f, "DefaultLifetime = %d\n", DefaultLifetime);
+ fprintf(f, "VideoFormat = %d\n", VideoFormat);
fprintf(f, "CurrentChannel = %d\n", CurrentChannel);
f.Close();
isyslog(LOG_INFO, "saved setup to %s", FileName);