diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-06-16 14:31:14 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-06-16 14:31:14 +0200 |
commit | d3f255e79ec8590728a34f6665bf2e2204b713c0 (patch) | |
tree | 335d0db9f90a706fe45f5fb0cde455c94399f43f /config.c | |
parent | 0af14457e0cb9f91dd2861814b8a2aae55a193be (diff) | |
download | vdr-d3f255e79ec8590728a34f6665bf2e2204b713c0.tar.gz vdr-d3f255e79ec8590728a34f6665bf2e2204b713c0.tar.bz2 |
Setup parameter for VideoFormat
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.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); |