[mythtv] [patch] save position when 'jump'ing :-)

Dave Alden alden at math.ohio-state.edu
Mon Dec 8 17:45:47 EST 2003


Hi,
  This small patch fixes it so that if you're watching a previously recorded
show, and you hit a jumppoint key, the current position will be saved (assuming
you've selected "Save position and exit" from the preferences.  If you've
selected "Always prompt", it defaults to not saving the position -- a patch
could be made for this, but it wasn't nearly as simple and clean, so I wasn't
sure what was best.
...dave
-------------- next part --------------
Index: libs/libmythtv/tv_play.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/tv_play.cpp,v
retrieving revision 1.130
diff -u -r1.130 tv_play.cpp
--- libs/libmythtv/tv_play.cpp	6 Dec 2003 02:00:04 -0000	1.130
+++ libs/libmythtv/tv_play.cpp	8 Dec 2003 22:21:40 -0000
@@ -880,6 +880,8 @@
 
         if (exitPlayer)
         {
+            if (gContext->GetNumSetting("PlaybackExitPrompt") == 2)
+                nvp->SetBookmark();
             while(osd->DialogShowing(dialogname))
             {
                 osd->DialogAbort(dialogname);
@@ -1220,8 +1222,6 @@
             } 
             else 
             {
-                if (gContext->GetNumSetting("PlaybackExitPrompt") == 2)
-                    nvp->SetBookmark();
                 exitPlayer = true;
                 wantsToQuit = true;
             }


More information about the mythtv-dev mailing list