From 0ecd4d3b4067fc2059c650fb0a54d4fabc6cab1d Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 30 Dec 2020 17:12:40 +0400 Subject: [PATCH] Close PiP when opening a loading video. Fixes #9926. --- Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index 1f25222bea..a32bd82e77 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -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; }