Mercurial > mplayer.hg
changeset 21396:856d660a1ebd
Fix a declarations vs statements warning.
author | diego |
---|---|
date | Fri, 01 Dec 2006 15:04:46 +0000 |
parents | dd05dd9e3e7b |
children | ac75ae9e3bd1 |
files | libvo/vo_quartz.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_quartz.c Fri Dec 01 14:58:11 2006 +0000 +++ b/libvo/vo_quartz.c Fri Dec 01 15:04:46 2006 +0000 @@ -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) ) {