diff options
Diffstat (limited to 'stream/cache_file.c')
-rw-r--r-- | stream/cache_file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/cache_file.c b/stream/cache_file.c index 94b3f4bda2..901b3f6f3b 100644 --- a/stream/cache_file.c +++ b/stream/cache_file.c @@ -66,8 +66,7 @@ static int fill_buffer(stream_t *s, char *buffer, int max_len) } // Size of file changes -> invalidate last block if (s->pos >= p->size - BLOCK_SIZE) { - int64_t new_size = -1; - stream_control(s, STREAM_CTRL_GET_SIZE, &new_size); + int64_t new_size = stream_get_size(s); if (p->size >= 0 && new_size != p->size) set_bit(p, BLOCK_ALIGN(p->size), 0); p->size = MPMIN(p->max_size, new_size); |