changeset 4391:6394c1e9e770

DVD start position handling changed (progbar/eta fix)
author arpi
date Sun, 27 Jan 2002 20:10:28 +0000
parents fbbd612779af
children b50b2b0c65ea
files libmpdemux/demux_mpg.c libmpdemux/demuxer.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c	Sun Jan 27 19:23:43 2002 +0000
+++ b/libmpdemux/demux_mpg.c	Sun Jan 27 20:10:28 2002 +0000
@@ -349,7 +349,10 @@
           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 */
--- a/libmpdemux/demuxer.c	Sun Jan 27 19:23:43 2002 +0000
+++ b/libmpdemux/demuxer.c	Sun Jan 27 20:10:28 2002 +0000
@@ -642,7 +642,7 @@
  }
  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)){