Fix crash in pinned video switching.

This commit is contained in:
John Preston
2021-05-04 17:55:25 +04:00
parent 54c2769d8a
commit 0dcc7a05f7
2 changed files with 3 additions and 3 deletions
@@ -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) {