changeset 1597:37b81a811cb2

fixed seeking (now allows seeking before start position)
author arpi
date Mon, 20 Aug 2001 21:20:39 +0000
parents fc0e9953bc2d
children 5ea286d6f86f
files demux_mpg.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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