diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-01 15:04:46 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-01 15:04:46 +0000 |
commit | a321bc9a2bce4d0d9f55d15dda61e986c4bdfb7e (patch) | |
tree | 84621b2da95e9d56ef741535e6368b418becd9d0 | |
parent | 3aa3fbbf6c4a9f5a049814b83ec8daebd0a89eb7 (diff) |
Fix a declarations vs statements warning.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21412 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_quartz.c | 7 |
1 files 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) ) { |