Mercurial > mplayer.hg
changeset 1962:a0bd07b10667
fixed VO time usage (now including page-flip)
author | arpi |
---|---|
date | Tue, 25 Sep 2001 20:28:40 +0000 |
parents | 43152677ed89 |
children | 951fa355422c |
files | mplayer.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Tue Sep 25 20:15:25 2001 +0000 +++ b/mplayer.c Tue Sep 25 20:28:40 2001 +0000 @@ -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!