input/proxy: use KnownSize()
This commit is contained in:
parent
9be90bd1c9
commit
f66a72c66b
@ -40,7 +40,10 @@ ProxyInputStream::CopyAttributes()
|
|||||||
if (input.HasMimeType())
|
if (input.HasMimeType())
|
||||||
SetMimeType(input.GetMimeType());
|
SetMimeType(input.GetMimeType());
|
||||||
|
|
||||||
size = input.GetSize();
|
size = input.KnownSize()
|
||||||
|
? input.GetSize()
|
||||||
|
: -1;
|
||||||
|
|
||||||
seekable = input.IsSeekable();
|
seekable = input.IsSeekable();
|
||||||
SetReady();
|
SetReady();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user