[mythtv] [patch] adjust PreviewPixmapOffset for RecordPreRoll

Lucas Meijer lucas at mach8.nl
Tue May 24 12:39:46 UTC 2005


This patch adds RecordPreRoll seconds to the PreviewPixmapOffset used to 
generate a preview image for a recording.

Its not 100% foolproof, since it uses the current recordpreroll setting, 
and there is a possibility that the recording was made with a different 
setting. Still better than before IMO, as RecordPreRoll wasn't taken 
into account at all.

Bye, Lucas
-------------- next part --------------
? patch
Index: programs/mythbackend/mainserver.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythbackend/mainserver.cpp,v
retrieving revision 1.207
diff -u -r1.207 mainserver.cpp
--- programs/mythbackend/mainserver.cpp	24 May 2005 02:36:01 -0000	1.207
+++ programs/mythbackend/mainserver.cpp	24 May 2005 12:36:17 -0000
@@ -3106,6 +3106,7 @@
     int len = 0;
     int width = 0, height = 0;
     int secondsin = gContext->GetNumSetting("PreviewPixmapOffset", 64);
+    secondsin += gContext->GetNumSetting("RecordPreRoll",0);
 
     unsigned char *data = (unsigned char *)elink->GetScreenGrab(pginfo, 
                                                                 filename, 


More information about the mythtv-dev mailing list