disable file size caching

This commit is contained in:
wm4 2020-02-16 15:31:22 +01:00
parent a19d918816
commit 95ec4e4580
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}