summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-05-21 11:35:37 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2009-05-21 11:35:37 +0200
commit2c5faf0b65d8223724865109176a9c19cf1f1cba (patch)
tree04f853b74dc39fd9a1e6024314bf19f50f5d4ad8 /config.c
parentd007c8c0d4a9102c1d111264db0ca3d6bbb458a9 (diff)
downloadvdr-2c5faf0b65d8223724865109176a9c19cf1f1cba.tar.gz
vdr-2c5faf0b65d8223724865109176a9c19cf1f1cba.tar.bz2
Implemented setup option "Recording/Pause key handling"
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 1516e15a..fe083ea9 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 2.3 2009/05/09 10:41:50 kls Exp $
+ * $Id: config.c 2.4 2009/05/21 11:10:38 kls Exp $
*/
#include "config.h"
@@ -250,6 +250,7 @@ cSetup::cSetup(void)
PrimaryLimit = 0;
DefaultPriority = 50;
DefaultLifetime = 99;
+ PauseKeyHandling = 2;
PausePriority = 10;
PauseLifetime = 1;
UseSubtitle = 1;
@@ -436,6 +437,7 @@ bool cSetup::Parse(const char *Name, const char *Value)
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, "PauseKeyHandling")) PauseKeyHandling = atoi(Value);
else if (!strcasecmp(Name, "PausePriority")) PausePriority = atoi(Value);
else if (!strcasecmp(Name, "PauseLifetime")) PauseLifetime = atoi(Value);
else if (!strcasecmp(Name, "UseSubtitle")) UseSubtitle = atoi(Value);
@@ -527,6 +529,7 @@ bool cSetup::Save(void)
Store("PrimaryLimit", PrimaryLimit);
Store("DefaultPriority", DefaultPriority);
Store("DefaultLifetime", DefaultLifetime);
+ Store("PauseKeyHandling", PauseKeyHandling);
Store("PausePriority", PausePriority);
Store("PauseLifetime", PauseLifetime);
Store("UseSubtitle", UseSubtitle);