Permalink
Browse files

add jumpingseconds patch

  • Loading branch information...
1 parent ac6ebc1 commit 9acc2fa6064a587c1f51bea7d6f831026d10463e @hotzenplotz5 hotzenplotz5 committed Apr 11, 2012
Showing with 85 additions and 0 deletions.
  1. +84 −0 debian/patches/opt-66_jumpingseconds.patch
  2. +1 −0 debian/patches/series
@@ -0,0 +1,84 @@
+diff -u --recursive --new-file vdr-1.7.27/config.c vdr-1.7.27_js/config.c
+--- vdr-1.7.27/config.c 2012-04-01 12:16:02.000000000 +0200
++++ vdr-1.7.27_js/config.c 2012-04-01 12:13:59.000000000 +0200
+@@ -470,6 +470,8 @@
+ InitialVolume = -1;
+ ChannelsWrap = 0;
+ EmergencyExit = 1;
++ JumpSeconds = 60;
++ JumpSecondsSlow = 10;
+ }
+
+ cSetup& cSetup::operator= (const cSetup &s)
+@@ -672,6 +674,8 @@
+ else if (!strcasecmp(Name, "DeviceBondings")) DeviceBondings = Value;
+ 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;
+@@ -777,6 +781,8 @@
+ Store("DeviceBondings", DeviceBondings);
+ Store("ChannelsWrap", ChannelsWrap);
+ Store("EmergencyExit", EmergencyExit);
++ Store("JumpSeconds", JumpSeconds);
++ Store("JumpSecondsSlow", JumpSecondsSlow);
+
+ Sort();
+
+diff -u --recursive --new-file vdr-1.7.27/config.h vdr-1.7.27_js/config.h
+--- vdr-1.7.27/config.h 2012-04-01 12:16:02.000000000 +0200
++++ vdr-1.7.27_js/config.h 2012-04-01 12:13:59.000000000 +0200
+@@ -331,6 +331,8 @@
+ int InitialVolume;
+ int ChannelsWrap;
+ int EmergencyExit;
++ int JumpSeconds;
++ int JumpSecondsSlow;
+ int __EndData__;
+ cString InitialChannel;
+ cString DeviceBondings;
+diff -u --recursive --new-file vdr-1.7.27/menu.c vdr-1.7.27_js/menu.c
+--- vdr-1.7.27/menu.c 2012-04-01 12:10:02.000000000 +0200
++++ vdr-1.7.27_js/menu.c 2012-04-01 12:13:59.000000000 +0200
+@@ -3533,6 +3533,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)
+@@ -5446,9 +5448,9 @@
+ case kRight: Forward(); break;
+ case kRed: TimeSearch(); 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;
+ case kPrev|k_Repeat:
+ case kPrev: if (lastSkipTimeout.TimedOut()) {
+ lastSkipSeconds = REPLAYCONTROLSKIPSECONDS;
+@@ -5495,7 +5497,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) {
+@@ -5508,7 +5510,7 @@
+ marks.Save();
+ }
+ else
+- SkipSeconds(20);
++ SkipSeconds(Setup.JumpSecondsSlow);
+ break;
+ case kMarkToggle: if (GetReplayMode(play, forward, speed) && play) {
+ displayFrames = true;
View
@@ -74,6 +74,7 @@ opt-61_dynamite.patch
opt-62_hard_link_cutter.patch
opt-63_naludump.patch
opt-65_pin.patch
+opt-66_jumpingseconds.patch
xprmtl-01_externalci.patch
channelname-fix-1.7.27.patch

0 comments on commit 9acc2fa

Please sign in to comment.