From 5145657aa90300bd82a9e2a4d73c7361bf17eee5 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Tue, 11 Mar 2025 15:33:24 +0100 Subject: [PATCH] Fix freeze on the second activation of screen sharing, when there are no permissions. --- Linphone/core/camera/PreviewManager.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Linphone/core/camera/PreviewManager.cpp b/Linphone/core/camera/PreviewManager.cpp index 70dcf3a67..b7c844c39 100644 --- a/Linphone/core/camera/PreviewManager.cpp +++ b/Linphone/core/camera/PreviewManager.cpp @@ -120,17 +120,15 @@ void PreviewManager::unsubscribe(QObject *sender) { } void PreviewManager::activate() { - App::postModelBlock([]() { + App::postModelAsync([]() { lDebug() << "[PreviewManager] Activation"; CoreModel::getInstance()->getCore()->enableVideoPreview(true); - CoreModel::getInstance()->getCore()->iterate(); }); } void PreviewManager::deactivate() { - App::postModelBlock([]() { + App::postModelAsync([]() { lDebug() << "[PreviewManager] Deactivation"; CoreModel::getInstance()->getCore()->enableVideoPreview(false); - CoreModel::getInstance()->getCore()->iterate(); }); }