summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-02-02 13:59:19 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-02-02 13:59:19 +0100
commite2d0f3f8453750ce0de8a02289fe58161c2c505e (patch)
treeb98f18799adf2d7e9b669baeb47e621190055546 /menu.c
parented766859d7416fa6a23b98d3709632dbffb4553c (diff)
downloadvdr-e2d0f3f8453750ce0de8a02289fe58161c2c505e.tar.gz
vdr-e2d0f3f8453750ce0de8a02289fe58161c2c505e.tar.bz2
Added "Setup/Replay/Binary skip strict"
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 16f98c45..2d6916ed 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 3.35 2015/02/01 10:42:11 kls Exp $
+ * $Id: menu.c 3.36 2015/02/02 12:23:18 kls Exp $
*/
#include "menu.h"
@@ -3641,6 +3641,7 @@ cMenuSetupReplay::cMenuSetupReplay(void)
Add(new cMenuEditBoolItem(tr("Setup.Replay$Pause replay at last mark"), &data.PauseAtLastMark));
Add(new cMenuEditIntItem( tr("Setup.Replay$Binary skip initial value (s)"), &data.BinarySkipInitial, 10, 600));
Add(new cMenuEditIntItem( tr("Setup.Replay$Binary skip timeout (s)"), &data.BinarySkipTimeout, 0, 10));
+ Add(new cMenuEditBoolItem(tr("Setup.Replay$Binary skip strict"), &data.BinarySkipStrict));
Add(new cMenuEditIntItem(tr("Setup.Replay$Resume ID"), &data.ResumeID, 0, 99));
}
@@ -5007,7 +5008,10 @@ int cBinarySkipper::GetValue(eKeys Key)
}
else if (Key != lastKey) {
currentValue /= 2;
- lastKey = kNone; // once the direction has changed, every further call halves the value
+ if (Setup.BinarySkipStrict)
+ lastKey = kNone; // once the direction has changed, every further call halves the value
+ else
+ lastKey = Key; // only halve the value when the direction is changed
}
timeout.Set(Setup.BinarySkipTimeout * 1000);
return max(currentValue, 1);