[mythtv] [PATCH] Skip ahead using numeric input

Kevin Kuphal kuphal at dls.net
Sun Sep 19 16:26:49 EDT 2004


This patch adds a feature straight from the ReplayTV handbook.  If you 
press JUMPFFWD or JUMPRWND after entering numbers (as if you were going 
to change the channel) then the system will skip ahead by that many 
minutes.  Useful for jumping deep into a program you already watched but 
lack a bookmark for or a variety of other reasons.

Kevin
-------------- next part --------------
Index: mythtv/libs/libmythtv/tv_play.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/tv_play.cpp,v
retrieving revision 1.209
diff -n -u -r1.209 tv_play.cpp
--- mythtv/libs/libmythtv/tv_play.cpp	6 Sep 2004 23:58:32 -0000	1.209
+++ mythtv/libs/libmythtv/tv_play.cpp	19 Sep 2004 20:21:05 -0000
@@ -1627,9 +1627,23 @@
                 ChangeFFRew(-1);
         }
         else if (action == "JUMPRWND")
-            DoSeek(-jumptime * 60, tr("Jump Back"));
+            if (channelqueued)
+            {
+                DoSeek(QString(channelKeys).toInt() * -60, tr("Jump Back"));
+                ChannelClear();
+            }
+            else
+                DoSeek(-jumptime * 60, tr("Jump Back"));
         else if (action == "JUMPFFWD")
-            DoSeek(jumptime * 60, tr("Jump Ahead"));
+        {
+            if (channelqueued)
+            {
+                DoSeek(QString(channelKeys).toInt() * 60, tr("Jump Ahead"));
+                ChannelClear();
+            }
+            else
+                DoSeek(jumptime * 60, tr("Jump Ahead"));
+        }
         else if (action == "JUMPSTART" && activenvp)
         {
             DoSeek(-activenvp->GetFramesPlayed(), tr("Jump to Begining"));


More information about the mythtv-dev mailing list