2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Show loaded till in playback slider.

This commit is contained in:
John Preston
2019-05-31 14:45:35 +03:00
parent 0ce5405eef
commit 2255eb2c68
12 changed files with 78 additions and 33 deletions

View File

@@ -251,7 +251,8 @@ void File::Context::start(crl::time position) {
return;
}
if (!_delegate->fileReady(std::move(video), std::move(audio))) {
const auto header = _reader->headerSize();
if (!_delegate->fileReady(header, std::move(video), std::move(audio))) {
return fail(Error::OpenFailed);
}
_format = std::move(format);