[Mplayer-cvslog] CVS: main mplayer.c,1.281,1.282

Arpi of Ize arpi at mplayer.dev.hu
Tue Sep 25 22:28:43 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv12062

Modified Files:
	mplayer.c 
Log Message:
fixed VO time usage (now including page-flip)

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.281
retrieving revision 1.282
diff -u -r1.281 -r1.282
--- mplayer.c	25 Sep 2001 15:13:57 -0000	1.281
+++ mplayer.c	25 Sep 2001 20:28:40 -0000	1.282
@@ -1409,7 +1409,11 @@
         if(blit_frame) vo2_flip(video_out,0);
 #else
 	video_out->check_events();
-        if(blit_frame) video_out->flip_page();
+        if(blit_frame){
+	   unsigned int t2=GetTimer();
+	   video_out->flip_page();
+	   t2=GetTimer()-t2;vout_time_usage+=t2*0.000001f;
+	}
 #endif
 //        usec_sleep(50000); // test only!
 




More information about the MPlayer-cvslog mailing list