Commit f66a72c6 authored by Max Kellermann's avatar Max Kellermann

input/proxy: use KnownSize()

parent 9be90bd1
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment