From 0dcc7a05f78b2de9d69af1fe2508f4ceff71dc19 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 4 May 2021 17:55:25 +0400 Subject: [PATCH] Fix crash in pinned video switching. --- Telegram/SourceFiles/calls/group/calls_group_call.cpp | 4 ++-- Telegram/ThirdParty/tgcalls | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/calls/group/calls_group_call.cpp b/Telegram/SourceFiles/calls/group/calls_group_call.cpp index 95e2af5455..773ccc7bf4 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_call.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_call.cpp @@ -1815,9 +1815,9 @@ void GroupCall::ensureControllerCreated() { _videoEndpointLarge.changes( ) | rpl::start_with_next([=](const std::string &endpoint) { _instance->setFullSizeVideoEndpointId(endpoint); + _videoLargeTrack = nullptr; + _videoLargeTrackWrap = nullptr; if (endpoint.empty()) { - _videoLargeTrack = nullptr; - _videoLargeTrackWrap = nullptr; return; } if (!_videoLargeTrackWrap) { diff --git a/Telegram/ThirdParty/tgcalls b/Telegram/ThirdParty/tgcalls index 697ef2ed67..6ee9e983b8 160000 --- a/Telegram/ThirdParty/tgcalls +++ b/Telegram/ThirdParty/tgcalls @@ -1 +1 @@ -Subproject commit 697ef2ed67cfcad81b0e61caf0945a057a847327 +Subproject commit 6ee9e983b8eebceb2603633c12d4cf2b973be046