[MPlayer-cvslog] r20911 - trunk/mplayer.c

uau subversion at mplayerhq.hu
Tue Nov 14 07:35:56 CET 2006


Author: uau
Date: Tue Nov 14 07:35:55 2006
New Revision: 20911

Modified:
   trunk/mplayer.c

Log:
Move endpos handling from page flip code to a saner location, change < to <=
If the shown frame was already at exactly the end pos we don't want to
show one more frame after it.


Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Tue Nov 14 07:35:55 2006
@@ -4458,11 +4458,6 @@
 
         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;
@@ -4513,6 +4508,11 @@
   set_video_quality(sh_video,output_quality);
 }
 
+// FIXME: add size based support for -endpos
+ if (end_at.type == END_AT_TIME &&
+         !frame_time_remaining && end_at.pos <= sh_video->pts)
+     eof = PT_NEXT_ENTRY;
+
 } // end if(sh_video)
 
 //============================ Handle PAUSE ===============================



More information about the MPlayer-cvslog mailing list