Mercurial > mplayer.hg
changeset 20323:ff8124582923
applied patch for -endpos, to work without a blit_frame, pointed out by Andrew Savchenko
author | ptt |
---|---|
date | Sat, 21 Oct 2006 09:32:58 +0000 |
parents | f92bf1488265 |
children | 2c684d5c9bb5 |
files | mplayer.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Sat Oct 21 08:44:10 2006 +0000 +++ b/mplayer.c Sat Oct 21 09:32:58 2006 +0000 @@ -4351,6 +4351,11 @@ current_module="flip_page"; if (!frame_time_remaining) { + + // FIXME: add size based support for -endpos + if ( end_at.type == END_AT_TIME && end_at.pos < sh_video->pts ) + eof = PT_NEXT_ENTRY; + if(blit_frame){ unsigned int t2=GetTimer(); double tt; @@ -4365,10 +4370,6 @@ too_slow_frame_cnt++; /* printf ("PANIC: too slow frame (%.3f)!\n", j); */ - // FIXME: add size based support for -endpos - if ( end_at.type == END_AT_TIME && end_at.pos < sh_video->pts ) - eof = PT_NEXT_ENTRY; - if(vo_config_count) video_out->flip_page(); if (play_n_frames >= 0) { --play_n_frames;