From 27408d4f14f4fc99464c1db8f81288a6ecffb373 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 18 Jun 2010 16:36:39 +0000 Subject: stream.h: support backswards stream_skip() within buffer Never just ignore a backwards skip, even if the stream is not seekable it might still be in a buffer. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31465 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/stream.h b/stream/stream.h index 40ea321bc4..9ee4902c69 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -303,7 +303,7 @@ inline static int stream_seek(stream_t *s,off_t pos){ } 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); } -- cgit v1.2.3