2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

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

View File

@@ -79,10 +79,8 @@ void SaveValidStartInformation(Information &to, Information &&from) {
} // namespace
Player::Player(
not_null<Data::Session*> owner,
std::shared_ptr<Reader> reader)
: _file(std::make_unique<File>(owner, std::move(reader)))
Player::Player(std::shared_ptr<Reader> reader)
: _file(std::make_unique<File>(std::move(reader)))
, _remoteLoader(_file->isRemoteLoader())
, _renderFrameTimer([=] { checkNextFrameRender(); }) {
}