mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
DVD start position handling changed (progbar/eta fix)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4392 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
35201ca295
commit
a84d0c2628
@ -349,7 +349,10 @@ void demux_seek_mpg(demuxer_t *demuxer,float rel_seek_secs,int flags){
|
||||
newpos+=sh_video->i_bps*rel_seek_secs;
|
||||
}
|
||||
|
||||
if(newpos<demuxer->movi_start) newpos=demuxer->movi_start;
|
||||
if(newpos<demuxer->movi_start){
|
||||
if(demuxer->stream->type!=STREAMTYPE_VCD) demuxer->movi_start=0; // for VCD
|
||||
if(newpos<demuxer->movi_start) newpos=demuxer->movi_start;
|
||||
}
|
||||
|
||||
#ifdef _LARGEFILE_SOURCE
|
||||
newpos&=~((long long)STREAM_BUFFER_SIZE-1); /* sector boundary */
|
||||
|
@ -642,7 +642,7 @@ switch(file_format){
|
||||
}
|
||||
case DEMUXER_TYPE_MPEG_PS: {
|
||||
sh_video=d_video->sh;sh_video->ds=d_video;
|
||||
if(demuxer->stream->type!=STREAMTYPE_VCD) demuxer->movi_start=0; // for VCD
|
||||
// if(demuxer->stream->type!=STREAMTYPE_VCD) demuxer->movi_start=0; // for VCD
|
||||
|
||||
if(audio_id!=-2) {
|
||||
if(!ds_fill_buffer(d_audio)){
|
||||
|
Loading…
Reference in New Issue
Block a user