diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-02-10 12:18:39 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-02-10 12:18:39 +0100 |
commit | fb37e93b044be4acc92bb8a593a8aa01e5477581 (patch) | |
tree | 631a5ed86930b51c407f0e1910899b2c16a94a13 /config.c | |
parent | 888c33c890ee17037c18f91a61da67d3ab14f79e (diff) | |
download | vdr-fb37e93b044be4acc92bb8a593a8aa01e5477581.tar.gz vdr-fb37e93b044be4acc92bb8a593a8aa01e5477581.tar.bz2 |
Made skipping with Green/Yellow keys configurable
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 8 |
1 files changed, 7 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 3.8 2015/02/06 10:10:22 kls Exp $ + * $Id: config.c 3.9 2015/02/10 11:43:11 kls Exp $ */ #include "config.h" @@ -476,6 +476,8 @@ cSetup::cSetup(void) AdaptiveSkipInitial = 120; AdaptiveSkipTimeout = 3; AdaptiveSkipAlternate = 0; + SkipSeconds = 60; + SkipSecondsRepeat = 60; ResumeID = 0; CurrentChannel = -1; CurrentVolume = MAXVOLUME; @@ -695,6 +697,8 @@ bool cSetup::Parse(const char *Name, const char *Value) else if (!strcasecmp(Name, "AdaptiveSkipInitial")) AdaptiveSkipInitial= atoi(Value); else if (!strcasecmp(Name, "AdaptiveSkipTimeout")) AdaptiveSkipTimeout= atoi(Value); else if (!strcasecmp(Name, "AdaptiveSkipAlternate")) AdaptiveSkipAlternate = atoi(Value); + else if (!strcasecmp(Name, "SkipSeconds")) SkipSeconds = atoi(Value); + else if (!strcasecmp(Name, "SkipSecondsRepeat")) SkipSecondsRepeat = atoi(Value); else if (!strcasecmp(Name, "ResumeID")) ResumeID = atoi(Value); else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value); else if (!strcasecmp(Name, "CurrentVolume")) CurrentVolume = atoi(Value); @@ -818,6 +822,8 @@ bool cSetup::Save(void) Store("AdaptiveSkipInitial",AdaptiveSkipInitial); Store("AdaptiveSkipTimeout",AdaptiveSkipTimeout); Store("AdaptiveSkipAlternate", AdaptiveSkipAlternate); + Store("SkipSeconds", SkipSeconds); + Store("SkipSecondsRepeat", SkipSecondsRepeat); Store("ResumeID", ResumeID); Store("CurrentChannel", CurrentChannel); Store("CurrentVolume", CurrentVolume); |