diff options
author | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-03-13 16:10:02 +0000 |
---|---|---|
committer | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-03-13 16:10:02 +0000 |
commit | 2aa6acd9747aec7f72ebea2addb9cdba98846d7a (patch) | |
tree | 7abd1a62bfd63988151fc2ab624a74d56dd18a18 /libmpdemux/stream.h | |
parent | e61fb5349ab1c7e6ae2664ab5ee4d04bb3e8f92b (diff) | |
download | mpv-2aa6acd9747aec7f72ebea2addb9cdba98846d7a.tar.bz2 mpv-2aa6acd9747aec7f72ebea2addb9cdba98846d7a.tar.xz |
Seek in HTTP streams and stdin seek fixes
Patch by eviv bulgroz <ebulgroz(at)yahoo(dot)com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12019 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/stream.h')
-rw-r--r-- | libmpdemux/stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/stream.h b/libmpdemux/stream.h index 07ba4d93a4..df0df18afb 100644 --- a/libmpdemux/stream.h +++ b/libmpdemux/stream.h @@ -229,7 +229,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 || (len>2*STREAM_BUFFER_SIZE && (s->flags & STREAM_SEEK))) { + if( (len<0 && (s->flags & STREAM_SEEK_BW)) || (len>2*STREAM_BUFFER_SIZE && (s->flags & STREAM_SEEK_FW)) ) { // negative or big skip! return stream_seek(s,stream_tell(s)+len); } |