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

reimar subversion at mplayerhq.hu
Sat Dec 15 20:54:44 CET 2012


Author: reimar
Date: Sat Dec 15 20:54:44 2012
New Revision: 35686

Log:
Attempt to fix -loop (when written after the file name) for
files that start with a negative time stamp.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sat Dec 15 20:53:28 2012	(r35685)
+++ trunk/mplayer.c	Sat Dec 15 20:54:44 2012	(r35686)
@@ -3958,6 +3958,11 @@ goto_enable_cache:
                 mpctx->eof    = 0;
                 abs_seek_pos  = SEEK_ABSOLUTE;
                 rel_seek_secs = seek_to_sec;
+                if (seek_to_sec == MP_NOPTS_VALUE) {
+                    // the first pts is not necessarily 0
+                    abs_seek_pos  = SEEK_ABSOLUTE | SEEK_FACTOR;
+                    rel_seek_secs = 0;
+                }
                 loop_seek     = 1;
             }
 


More information about the MPlayer-cvslog mailing list