[mythtv] [PATCH] Disable screen saver on PLAY action

Tom Hughes tom at compton.nu
Sun Mar 13 16:25:53 UTC 2005


Pausing playback causes any screen saver that was disabled when
playback started to be restored. If pause is then exited by pressing
pause again then the screen saver is disabled again.

If playback is resumed using the PLAY action (Ctrl+P by default) then
the screen saver is not disabled and is left running. The attached
patch fixes that.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
-------------- next part --------------
Index: libs/libmythtv/tv_play.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/tv_play.cpp,v
retrieving revision 1.248
diff -u -u -r1.248 tv_play.cpp
--- libs/libmythtv/tv_play.cpp	9 Mar 2005 22:45:07 -0000	1.248
+++ libs/libmythtv/tv_play.cpp	13 Mar 2005 16:23:11 -0000
@@ -2067,6 +2067,8 @@
         return;
 
     UpdatePosOSD(time, PlayMesg());
+
+    gContext->DisableScreensaver();
 }
 
 QString TV::PlayMesg()


More information about the mythtv-dev mailing list