[MPlayer-cvslog] r31465 - trunk/stream/stream.h

reimar subversion at mplayerhq.hu
Fri Jun 18 18:36:39 CEST 2010


Author: reimar
Date: Fri Jun 18 18:36:39 2010
New Revision: 31465

Log:
100l, never just ignore a backwards skip, even if the stream is not
seekable it might still be in a buffer.
Fixes piping of yuv4mpeg files.

Modified:
   trunk/stream/stream.h

Modified: trunk/stream/stream.h
==============================================================================
--- trunk/stream/stream.h	Fri Jun 18 18:32:54 2010	(r31464)
+++ trunk/stream/stream.h	Fri Jun 18 18:36:39 2010	(r31465)
@@ -297,7 +297,7 @@ inline static int stream_seek(stream_t *
 }
 
 inline static int stream_skip(stream_t *s,off_t len){
-  if( (len<0 && (s->flags & MP_STREAM_SEEK_BW)) || (len>2*STREAM_BUFFER_SIZE && (s->flags & MP_STREAM_SEEK_FW)) ) {
+  if( len<0 || (len>2*STREAM_BUFFER_SIZE && (s->flags & MP_STREAM_SEEK_FW)) ) {
     // negative or big skip!
     return stream_seek(s,stream_tell(s)+len);
   }


More information about the MPlayer-cvslog mailing list