input/proxy: use KnownSize()

This commit is contained in:
Max Kellermann 2014-08-19 21:00:32 +02:00
parent 9be90bd1c9
commit f66a72c66b

View File

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