Mercurial > mplayer.hg
diff demux_mpg.c @ 1597:37b81a811cb2
fixed seeking (now allows seeking before start position)
author | arpi |
---|---|
date | Mon, 20 Aug 2001 21:20:39 +0000 |
parents | 5c7760aa4f94 |
children | bd1ef18cdf33 |
line wrap: on
line diff
--- a/demux_mpg.c Mon Aug 20 21:20:03 2001 +0000 +++ b/demux_mpg.c Mon Aug 20 21:20:39 2001 +0000 @@ -357,7 +357,9 @@ else newpos=demuxer->filepos+(sh_video->i_bps)*rel_seek_secs; - if(newpos<demuxer->stream->start_pos) newpos=demuxer->stream->start_pos; // for VCD + if(newpos<demuxer->stream->start_pos + && demuxer->stream->type==STREAMTYPE_VCD) + newpos=demuxer->stream->start_pos; // for VCD #ifdef _LARGEFILE_SOURCE newpos&=~((long long)STREAM_BUFFER_SIZE-1); /* sector boundary */ #else