diff options
author | attila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-02-17 12:30:45 +0000 |
---|---|---|
committer | attila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-02-17 12:30:45 +0000 |
commit | b603289132cbe36dc57ab9f284742f5b47e6818e (patch) | |
tree | af802179660474434ab46bab525d70aec037987d /libmpdemux/stream.h | |
parent | dd4befd76fd2e8a4c30681f8dae17186065cc8c8 (diff) |
enable seeking in http streams
patch by Valentine Zaretsky <valik+mplayerdev@email.dp.ua>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11966 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 bfed571b47..07ba4d93a4 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->type!=STREAMTYPE_STREAM)){ + if(len<0 || (len>2*STREAM_BUFFER_SIZE && (s->flags & STREAM_SEEK))) { // negative or big skip! return stream_seek(s,stream_tell(s)+len); } |