summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream.c b/stream/stream.c
index 3b8915c8ac..f50003660c 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -631,6 +631,7 @@ static int stream_skip_read(struct stream *s, int64_t len)
// logical stream position by the amount of buffered but not yet read data.
void stream_drop_buffers(stream_t *s)
{
+ s->pos = stream_tell(s);
s->buf_pos = s->buf_len = 0;
s->eof = 0;
}