[mythtv] [PATCH] Improved responsiveness of Watch?delete Recordings GUI

Tako Schotanus quintesse at palacio-cristal.com
Fri Oct 24 03:33:41 EDT 2003


This is a very minor patch that changes introduces a minor delay before 
starting to display the preview video on the Watch and Delete Recordings 
pages.
This removes the sluggish response of the GUI while scrolling around in 
the list of recordings.
In the fraction of a second (.5s) that the preview video is delayed the 
GUI will now show the preview image instead.

For me it now has become fun to just browse around in the list looking 
at all the things I've recorded over the last couple of months :-)

Cheers,
 -Tako
-------------- next part --------------
Index: programs/mythfrontend/playbackbox.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/playbackbox.cpp,v
retrieving revision 1.96
diff -u -2 -r1.96 playbackbox.cpp
--- programs/mythfrontend/playbackbox.cpp	12 Oct 2003 23:12:19 -0000	1.96
+++ programs/mythfrontend/playbackbox.cpp	24 Oct 2003 00:22:37 -0000
@@ -119,5 +119,5 @@
     connect(timer, SIGNAL(timeout()), this, SLOT(timeout()));
 
-    timer->start(1000 / 30);
+    timer->start(500);
     gContext->addListener(this);
 }
@@ -442,5 +442,5 @@
         ignoreevents = false;
 
-        timer->start(1000 / 30);
+        timer->start(500);
     }
     else
@@ -462,5 +462,5 @@
         return;
 
-    if (playbackPreview == 0 && curitem)
+    if (((playbackPreview == 0) || !playingVideo) && curitem)
     {
         QPixmap temp = getPixmap(curitem);
@@ -1321,5 +1321,5 @@
     ignoreevents = false;
 
-    timer->start(1000 / 30);
+    timer->start(500);
 }
 
@@ -1651,5 +1651,5 @@
     delitem = NULL;
 
-    timer->start(1000 / 30);
+    timer->start(500);
 }
 
@@ -1666,5 +1666,5 @@
     delitem = NULL;
 
-    timer->start(1000 / 30);
+    timer->start(500);
 }
 
@@ -1689,5 +1689,5 @@
     delitem = NULL;
 
-    timer->start(1000 / 30);
+    timer->start(500);
 }
 
@@ -1704,5 +1704,5 @@
     delitem = NULL;
 
-    timer->start(1000 / 30);
+    timer->start(500);
 }
 
@@ -1805,4 +1805,6 @@
     if (playbackPreview == 0)
         timer->stop();
+	else
+		timer->start(1000 / 30);
 }
 


More information about the mythtv-dev mailing list