From a321bc9a2bce4d0d9f55d15dda61e986c4bdfb7e Mon Sep 17 00:00:00 2001 From: diego Date: Fri, 1 Dec 2006 15:04:46 +0000 Subject: [PATCH] Fix a declarations vs statements warning. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21412 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_quartz.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c index ebef1a3dc3..05dce549a9 100644 --- a/libvo/vo_quartz.c +++ b/libvo/vo_quartz.c @@ -897,6 +897,9 @@ static void draw_osd(void) static void flip_page(void) { + int curTime; + static int lastTime; + if(theWindow == NULL) return; @@ -980,8 +983,8 @@ static void flip_page(void) //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) ) {