Fix crash and glitch in video-in-PiP preserve.
This commit is contained in:
parent
5bb73d8d3d
commit
06292e7442
|
@ -2211,10 +2211,9 @@ void OverlayWidget::showDocument(
|
|||
|
||||
_streamingStartPaused = false;
|
||||
displayDocument(document, context, cloud, continueStreaming);
|
||||
if (!isHidden()) {
|
||||
preloadData(0);
|
||||
activateControls();
|
||||
if (_showAsPip && !videoIsGifOrUserpic()) {
|
||||
switchToPip();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2412,7 +2411,11 @@ void OverlayWidget::displayDocument(
|
|||
contentSizeChanged();
|
||||
refreshFromLabel(item);
|
||||
_blurred = false;
|
||||
if (_showAsPip && _streamed && !videoIsGifOrUserpic()) {
|
||||
switchToPip();
|
||||
} else {
|
||||
displayFinished();
|
||||
}
|
||||
}
|
||||
|
||||
void OverlayWidget::updateThemePreviewGeometry() {
|
||||
|
|
Loading…
Reference in New Issue