Use Media::Streaming in EditCaptionBox.

This commit is contained in:
John Preston
2020-05-20 15:04:56 +04:00
parent 3d431a27cb
commit 581a21dbd9
15 changed files with 220 additions and 149 deletions
+2 -2
View File
@@ -66,8 +66,8 @@ std::shared_ptr<Streaming::Reader> Streaming::sharedReader(
return nullptr;
}
auto result = std::make_shared<Reader>(
&_owner->cacheBigFile(),
std::move(loader));
std::move(loader),
&_owner->cacheBigFile());
if (!PruneDestroyedAndSet(_readers, document, result)) {
_readers.emplace_or_assign(document, result);
}