Mercurial > mplayer.hg
changeset 26832:6af954f69fe4
Re-add (hackish) support for -chapter (only start chapter, end is not supported) with -dumpstream.
author | reimar |
---|---|
date | Sat, 24 May 2008 07:47:11 +0000 |
parents | 7b868c55d22b |
children | 77003eb2d9a8 |
files | mplayer.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Fri May 23 20:18:06 2008 +0000 +++ b/mplayer.c Sat May 24 07:47:11 2008 +0000 @@ -3172,6 +3172,10 @@ 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) {