[MPlayer-cvslog] r21412 - trunk/libvo/vo_quartz.c

diego subversion at mplayerhq.hu
Fri Dec 1 16:04:46 CET 2006


Author: diego
Date: Fri Dec  1 16:04:46 2006
New Revision: 21412

Modified:
   trunk/libvo/vo_quartz.c

Log:
Fix a declarations vs statements warning.


Modified: trunk/libvo/vo_quartz.c
==============================================================================
--- trunk/libvo/vo_quartz.c	(original)
+++ trunk/libvo/vo_quartz.c	Fri Dec  1 16:04:46 2006
@@ -897,6 +897,9 @@
 
 static void flip_page(void)
 {
+	int curTime;
+	static int lastTime;
+
 	if(theWindow == NULL)
 		return;
 		
@@ -980,8 +983,8 @@
 
 	//update activity every 30 seconds to prevent
 	//screensaver from starting up.
-	int curTime = TickCount()/60;
-	static int lastTime = 0;
+	curTime  = TickCount()/60;
+	lastTime = 0;
 		
 	if( ((curTime/ - lastTime) >= 5) || (lastTime == 0) )
 	{



More information about the MPlayer-cvslog mailing list