Fix radial loading and seek frame in PiP.

This commit is contained in:
John Preston 2021-06-10 14:05:15 +04:00
parent 112c597556
commit aeb994dd40
2 changed files with 3 additions and 1 deletions

View File

@ -1557,6 +1557,8 @@ void Pip::playbackPauseResume() {
void Pip::restartAtSeekPosition(crl::time position) {
if (!_instance.info().video.cover.isNull()) {
_preparedCoverStorage = QImage();
_preparedCoverState = ThumbState::Empty;
_instance.saveFrameToCover();
}
auto options = Streaming::PlaybackOptions();

View File

@ -496,7 +496,7 @@ void Pip::RendererGL::paintRadialLoading(
int(std::round(fg.red() * fgAlpha + fade.red() * fadeAlpha)),
int(std::round(fg.green() * fgAlpha + fade.green() * fadeAlpha)),
int(std::round(fg.blue() * fgAlpha + fade.blue() * fadeAlpha)),
fg.alphaF());
fg.alpha());
_owner->paintRadialLoadingContent(p, newInner, color);
}, kRadialLoadingOffset, true);