summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-24 07:47:11 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-24 07:47:11 +0000
commit05f93a0054636f00bd2a9f9eec997d42a29f14d8 (patch)
tree97bbad370909a771ef6c7abfaea6c20e2e1b8906 /mplayer.c
parentabd22b8f480a261536151b89d03b2730b7056c8e (diff)
downloadmpv-05f93a0054636f00bd2a9f9eec997d42a29f14d8.tar.bz2
mpv-05f93a0054636f00bd2a9f9eec997d42a29f14d8.tar.xz
Re-add (hackish) support for -chapter (only start chapter, end is not supported) with -dumpstream.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26864 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 057744d042..aaad77cb51 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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) {