summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index 70c0f8d1..ae61c64d 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.47 2015/02/10 11:51:10 kls Exp $
+ * $Id: menu.c 3.48 2015/02/10 12:37:06 kls Exp $
*/
#include "menu.h"
@@ -3730,6 +3730,7 @@ cMenuSetupReplay::cMenuSetupReplay(void)
Add(new cMenuEditIntItem( tr("Setup.Replay$Initial duration for adaptive skipping (s)"), &data.AdaptiveSkipInitial, 10, 600));
Add(new cMenuEditIntItem( tr("Setup.Replay$Reset timeout for adaptive skipping (s)"), &data.AdaptiveSkipTimeout, 0, 10));
Add(new cMenuEditBoolItem(tr("Setup.Replay$Alternate behavior for adaptive skipping"), &data.AdaptiveSkipAlternate));
+ Add(new cMenuEditBoolItem(tr("Setup.Replay$Use Prev/Next keys for adaptive skipping"), &data.AdaptiveSkipPrevNext));
Add(new cMenuEditIntItem( tr("Setup.Replay$Skip distance with Green/Yellow keys (s)"), &data.SkipSeconds, 5, 600));
Add(new cMenuEditIntItem( tr("Setup.Replay$Skip distance with Green/Yellow keys in repeat (s)"), &data.SkipSecondsRepeat, 5, 600));
Add(new cMenuEditIntItem(tr("Setup.Replay$Resume ID"), &data.ResumeID, 0, 99));
@@ -5600,11 +5601,19 @@ eOSState cReplayControl::ProcessKey(eKeys Key)
// Editing:
case kMarkToggle: MarkToggle(); break;
case kPrev|k_Repeat:
- case kPrev:
+ case kPrev: if (Setup.AdaptiveSkipPrevNext) {
+ MarkMove(-adaptiveSkipper.GetValue(RAWKEY(Key)), false);
+ break;
+ }
+ // fall through...
case kMarkJumpBack|k_Repeat:
case kMarkJumpBack: MarkJump(false); break;
case kNext|k_Repeat:
- case kNext:
+ case kNext: if (Setup.AdaptiveSkipPrevNext) {
+ MarkMove(+adaptiveSkipper.GetValue(RAWKEY(Key)), false);
+ break;
+ }
+ // fall through...
case kMarkJumpForward|k_Repeat:
case kMarkJumpForward: MarkJump(true); break;
case kMarkMoveBack|k_Repeat: