diff options
Diffstat (limited to 'stream/cache.c')
-rw-r--r-- | stream/cache.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/cache.c b/stream/cache.c index 356a49afc7..ccb2f2ca32 100644 --- a/stream/cache.c +++ b/stream/cache.c @@ -581,9 +581,8 @@ static int cache_control(stream_t *cache, int cmd, void *arg) } r = s->control_res; if (s->control_flush) { + stream_drop_buffers(cache); cache->pos = s->read_filepos; - cache->eof = 0; - cache->buf_pos = cache->buf_len = 0; } done: |