Close PiP when opening a loading video.

Fixes #9926.
This commit is contained in:
John Preston 2020-12-30 17:12:40 +04:00
parent 3fd62d51aa
commit 0ecd4d3b40
1 changed files with 3 additions and 1 deletions

View File

@ -2443,7 +2443,9 @@ bool OverlayWidget::initStreaming(bool continueStreaming) {
void OverlayWidget::startStreamingPlayer() {
Expects(_streamed != nullptr);
if (_streamed->instance.player().playing()) {
if (!_streamed->instance.player().paused()
&& !_streamed->instance.player().finished()
&& !_streamed->instance.player().failed()) {
if (!_streamed->withSound) {
return;
}