# HG changeset patch # User reimar # Date 1276878999 0 # Node ID a12626be522ca346e419a0cb1aa5564bf5b86b3c # Parent b240cee8506dbd7252409e868eabe3520bc23270 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. diff -r b240cee8506d -r a12626be522c stream/stream.h --- a/stream/stream.h Fri Jun 18 16:32:54 2010 +0000 +++ b/stream/stream.h Fri Jun 18 16:36:39 2010 +0000 @@ -297,7 +297,7 @@ } 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); }