Mercurial > mplayer.hg
changeset 35592:355bbee58b99
Attempt to fix -loop (when written after the file name) for
files that start with a negative time stamp.
author | reimar |
---|---|
date | Sat, 15 Dec 2012 19:54:44 +0000 |
parents | 912ea01174c1 |
children | 7f77500c982b |
files | mplayer.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }