[Mplayer-cvslog] CVS: main demux_mpg.c,1.28,1.29

Arpi of Ize arpi at mplayer.dev.hu
Mon Aug 20 23:20:41 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv4646

Modified Files:
	demux_mpg.c 
Log Message:
fixed seeking (now allows seeking before start position)

Index: demux_mpg.c
===================================================================
RCS file: /cvsroot/mplayer/main/demux_mpg.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- demux_mpg.c	17 Aug 2001 00:40:25 -0000	1.28
+++ demux_mpg.c	20 Aug 2001 21:20:39 -0000	1.29
@@ -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




More information about the MPlayer-cvslog mailing list