aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/ProxyInputStream.cxx5
1 files changed, 4 insertions, 1 deletions
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();
}