[Mplayer-cvslog] CVS: main mplayer.c,1.686,1.687

Tobias Diedrich CVS ranma at mplayerhq.hu
Wed Mar 26 18:02:30 CET 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv21874

Modified Files:
	mplayer.c 
Log Message:
Improved xscreensaver support.
With this we no longer have to kill xscreensaver, but just send it a message
periodically.


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.686
retrieving revision 1.687
diff -u -r1.686 -r1.687
--- mplayer.c	16 Mar 2003 20:13:06 -0000	1.686
+++ mplayer.c	26 Mar 2003 17:02:07 -0000	1.687
@@ -139,6 +139,12 @@
 #include "get_path.c"
 
 //**************************************************************************//
+//             XScreensaver
+//**************************************************************************//
+
+void xscreensaver_heartbeat(float time);
+
+//**************************************************************************//
 //**************************************************************************//
 //             Input media streaming & demultiplexer:
 //**************************************************************************//
@@ -3253,6 +3259,12 @@
       current_module=NULL;
   }
 #endif
+
+if (stop_xscreensaver && sh_video) {
+  current_module="stop_xscreensaver";
+  xscreensaver_heartbeat(sh_video->pts);
+  current_module=NULL;
+}
   
   // DVD sub:
 if(vo_config_count && vo_spudec) {



More information about the MPlayer-cvslog mailing list