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

reimar subversion at mplayerhq.hu
Sat May 24 09:47:11 CEST 2008


Author: reimar
Date: Sat May 24 09:47:11 2008
New Revision: 26864

Log:
Re-add (hackish) support for -chapter (only start chapter, end is not supported) with -dumpstream.


Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Sat May 24 09:47:11 2008
@@ -3172,6 +3172,10 @@ if(stream_dump_type==5){
     mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_CantOpenDumpfile);
     exit_player(MSGTR_Exit_error);
   }
+  if (dvd_chapter > 1) {
+    int chapter = dvd_chapter - 1;
+    stream_control(mpctx->stream, STREAM_CTRL_SEEK_TO_CHAPTER, &chapter);
+  }
   while(!mpctx->stream->eof){
       len=stream_read(mpctx->stream,buf,4096);
       if(len>0) {



More information about the MPlayer-cvslog mailing list