# HG changeset patch # User reimar # Date 1355601284 0 # Node ID 355bbee58b996e0608442bfcb39aeab6337dbb9e # Parent 912ea01174c125e815bbf432eaf16f6186ab123d Attempt to fix -loop (when written after the file name) for files that start with a negative time stamp. diff -r 912ea01174c1 -r 355bbee58b99 mplayer.c --- a/mplayer.c Sat Dec 15 19:53:28 2012 +0000 +++ b/mplayer.c Sat Dec 15 19:54:44 2012 +0000 @@ -3958,6 +3958,11 @@ 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; }