From f66a72c66bfe001c7bb6952dfceedc740d2b7154 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 19 Aug 2014 21:00:32 +0200 Subject: input/proxy: use KnownSize() --- src/input/ProxyInputStream.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/input') diff --git a/src/input/ProxyInputStream.cxx b/src/input/ProxyInputStream.cxx index d65fb5df1..67b2c3338 100644 --- a/src/input/ProxyInputStream.cxx +++ b/src/input/ProxyInputStream.cxx @@ -40,7 +40,10 @@ ProxyInputStream::CopyAttributes() if (input.HasMimeType()) SetMimeType(input.GetMimeType()); - size = input.GetSize(); + size = input.KnownSize() + ? input.GetSize() + : -1; + seekable = input.IsSeekable(); SetReady(); } -- cgit v1.2.3