#! /bin/sh /usr/share/dpatch/dpatch-run
## opt-99_remux.dpatch.dpatch by  <root@CKtwo.fritz.box>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@

diff -u --recursive --new-file vdr-1.7.22/config.c vdr-1.7.22-patched/config.c
--- vdr-1.7.22/config.c	2012-02-26 12:16:14.000000000 +0100
+++ vdr-1.7.22-patched/config.c	2012-02-26 12:21:58.327539787 +0100
@@ -476,6 +476,8 @@
   InitialVolume = -1;
   ChannelsWrap = 0;
   EmergencyExit = 1;
+  JumpSeconds = 60;
+  JumpSecondsSlow = 10;
 #ifdef USE_LIVEBUFFER
   LiveBufferSize = 15;
   LiveBufferMaxFileSize = 100;
@@ -702,6 +704,8 @@
 #endif /*USE_LIVEBUFFER*/
   else if (!strcasecmp(Name, "ChannelsWrap"))        ChannelsWrap       = atoi(Value);
   else if (!strcasecmp(Name, "EmergencyExit"))       EmergencyExit      = atoi(Value);
+  else if (!strcasecmp(Name, "JumpSeconds"))         JumpSeconds        = atoi(Value);
+  else if (!strcasecmp(Name, "JumpSecondsSlow"))     JumpSecondsSlow    = atoi(Value);
   else
      return false;
   return true;
@@ -813,6 +817,8 @@
   Store("DeviceBondings",     DeviceBondings);
   Store("ChannelsWrap",       ChannelsWrap);
   Store("EmergencyExit",      EmergencyExit);
+  Store("JumpSeconds",        JumpSeconds);
+  Store("JumpSecondsSlow",    JumpSecondsSlow);
 #ifdef USE_LIVEBUFFER
   Store("LiveBufferSize",     LiveBufferSize);
 #endif  /* LIVEBUFFER */
diff -u --recursive --new-file vdr-1.7.22/config.h vdr-1.7.22-patched/config.h
--- vdr-1.7.22/config.h	2012-02-26 12:16:14.000000000 +0100
+++ vdr-1.7.22-patched/config.h	2012-02-26 12:21:58.331539786 +0100
@@ -332,6 +332,8 @@
   int InitialVolume;
   int ChannelsWrap;
   int EmergencyExit;
+  int JumpSeconds;
+  int JumpSecondsSlow;
 #ifdef USE_LIVEBUFFER
   int LiveBufferSize;
   int LiveBufferMaxFileSize;
diff -u --recursive --new-file vdr-1.7.22/menu.c vdr-1.7.22-patched/menu.c
--- vdr-1.7.22/menu.c	2012-02-26 12:16:14.000000000 +0100
+++ vdr-1.7.22-patched/menu.c	2012-02-26 12:23:50.299537225 +0100
@@ -3539,6 +3539,8 @@
   Add(new cMenuEditBoolItem(tr("Setup.Replay$Jump&Play"), &data.JumpPlay));
   Add(new cMenuEditBoolItem(tr("Setup.Replay$Play&Jump"), &data.PlayJump));
   Add(new cMenuEditBoolItem(tr("Setup.Replay$Pause at last mark"), &data.PauseLastMark));
+  Add(new cMenuEditIntItem(tr("Setup.Replay$Jump Seconds"), &data.JumpSeconds));
+  Add(new cMenuEditIntItem(tr("Setup.Replay$Jump Seconds Slow"), &data.JumpSecondsSlow));
 }
 
 void cMenuSetupReplay::Store(void)
@@ -5622,9 +5624,9 @@
     case kFastFwd:
     case kRight:   Forward(); break;
     case kGreen|k_Repeat:
-    case kGreen:   SkipSeconds(-60); break;
+    case kGreen:   SkipSeconds(-Setup.JumpSeconds); break;
     case kYellow|k_Repeat:
-    case kYellow:  SkipSeconds( 60); break;
+    case kYellow:  SkipSeconds(Setup.JumpSeconds); break;
 #ifdef USE_LIVEBUFFER
     case kRed:     if(cRecordControls::GetLiveIndex(fileName)) {
 
@@ -5730,7 +5732,7 @@
                                   marks.Save();
                                   }
                                else
-                                  SkipSeconds(-20);
+                                  SkipSeconds(-Setup.JumpSecondsSlow);
                                break;
         case k3|k_Repeat:
         case k3:               if (GetReplayMode(play, forward, speed) && !play && GetIndex(Current, Total) && (m = marks.Get(Current)) != NULL) {
@@ -5743,7 +5745,7 @@
                                   marks.Save();
                                   }
                                else
-                                  SkipSeconds(20);
+                                  SkipSeconds(Setup.JumpSecondsSlow);
                                break;
         case kMarkToggle:      if (GetReplayMode(play, forward, speed) && play) {
                                   displayFrames = true;
