[MPlayer-cvslog] r35685 - in trunk: DOCS/man/en/mplayer.1 mplayer.c

reimar subversion at mplayerhq.hu
Sat Dec 15 20:53:29 CET 2012


Author: reimar
Date: Sat Dec 15 20:53:28 2012
New Revision: 35685

Log:
Allow -ss 0 to seek to pts 0 instead of disabling seeking.
This is useful for files that start with negative timestamps.

Modified:
   trunk/mplayer.c

Changes in other areas also in this revision:
Modified:
   trunk/DOCS/man/en/mplayer.1

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sat Dec 15 20:51:21 2012	(r35684)
+++ trunk/mplayer.c	Sat Dec 15 20:53:28 2012	(r35685)
@@ -203,7 +203,7 @@ int term_osd = 1;
 static char *term_osd_esc = "\x1b[A\r\x1b[K";
 static char *playing_msg;
 // seek:
-static double seek_to_sec;
+static double seek_to_sec = MP_NOPTS_VALUE;
 static off_t seek_to_byte;
 static off_t step_sec;
 static int loop_seek;
@@ -3702,7 +3702,7 @@ goto_enable_cache:
             goto goto_next_file;
         }
 
-        if (seek_to_sec) {
+        if (seek_to_sec != MP_NOPTS_VALUE) {
             seek(mpctx, seek_to_sec, SEEK_ABSOLUTE);
             end_at.pos += seek_to_sec;
         }


More information about the MPlayer-cvslog mailing list