mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 00:06:25 +01:00
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
This commit is contained in:
parent
abd22b8f48
commit
05f93a0054
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user