diff options
-rw-r--r-- | stream/stream_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c index 6e69f33c94..30b9b4c438 100644 --- a/stream/stream_file.c +++ b/stream/stream_file.c @@ -76,11 +76,11 @@ struct priv { static int64_t get_size(stream_t *s) { struct priv *p = s->priv; - if (p->cached_size == -2) { + //if (p->cached_size == -2) { off_t size = lseek(p->fd, 0, SEEK_END); lseek(p->fd, s->pos, SEEK_SET); p->cached_size = size < 0 ? -1 : size; - } + //} return p->cached_size; } |