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) ) {