From f4460a55bcd39114ac02eb00e39c5615153f860e Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Wed, 8 Jan 2025 17:53:57 +0100 Subject: [PATCH] Run downloaded codecs updates and set video codecs priority policy on Linphone Core Thread --- Linphone/core/App.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Linphone/core/App.cpp b/Linphone/core/App.cpp index ef700718..9198bc99 100644 --- a/Linphone/core/App.cpp +++ b/Linphone/core/App.cpp @@ -433,6 +433,10 @@ void App::initCore() { SettingsModel::create(); lDebug() << log().arg("Creating SettingsCore"); if (!settings) settings = SettingsCore::create(); + lDebug() << log().arg("Checking downloaded codecs updates"); + Utils::checkDownloadedCodecsUpdates(); + lDebug() << log().arg("Setting Video Codec Priority Policy"); + CoreModel::getInstance()->getCore()->setVideoCodecPriorityPolicy(linphone::CodecPriorityPolicy::Auto); lDebug() << log().arg("Creating Ui"); QMetaObject::invokeMethod(App::getInstance()->thread(), [this, settings] { // Initialize DestopTools here to have logs into files in case of errors. @@ -538,11 +542,7 @@ void App::initCore() { }, Qt::QueuedConnection); - Utils::checkDownloadedCodecsUpdates(); - mEngine->load(url); - - CoreModel::getInstance()->getCore()->setVideoCodecPriorityPolicy(linphone::CodecPriorityPolicy::Auto); }); }, Qt::BlockingQueuedConnection);