From aef8d4b6c51173902c0170cc9ba0a4f66c7a160d Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Fri, 10 Jan 2025 16:04:51 +0100 Subject: [PATCH] Fix codecs update threading --- Linphone/core/payload-type/DownloadablePayloadTypeCore.cpp | 1 + Linphone/tool/Utils.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Linphone/core/payload-type/DownloadablePayloadTypeCore.cpp b/Linphone/core/payload-type/DownloadablePayloadTypeCore.cpp index 7b8b70a3..6ce8a544 100644 --- a/Linphone/core/payload-type/DownloadablePayloadTypeCore.cpp +++ b/Linphone/core/payload-type/DownloadablePayloadTypeCore.cpp @@ -85,6 +85,7 @@ void DownloadablePayloadTypeCore::setSelf(QSharedPointer> Utils::getDownloadableVideoPa void Utils::checkDownloadedCodecsUpdates() { for (auto codec : getDownloadableVideoPayloadTypes()) { - if (codec->shouldDownloadUpdate()) codec->downloadAndExtract(true); + if (codec->shouldDownloadUpdate()) App::postCoreAsync([codec]() { codec->downloadAndExtract(true); }); } }