From 3c264fd3eea6c42726ea8532f81f21f7d98827b7 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Tue, 18 Nov 2025 11:27:59 +0100 Subject: [PATCH] Set camera state on call creation in order to avoid using not wanted state while updating the call. Cause: toggling screensharing will activate the camera if the call is a video call. --- Linphone/model/tool/ToolModel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Linphone/model/tool/ToolModel.cpp b/Linphone/model/tool/ToolModel.cpp index 2ce9478e..f9363aca 100644 --- a/Linphone/model/tool/ToolModel.cpp +++ b/Linphone/model/tool/ToolModel.cpp @@ -321,6 +321,7 @@ bool ToolModel::createCall(const QString &sipAddress, } std::shared_ptr params = core->createCallParams(nullptr); params->enableVideo(localVideoEnabled); + params->enableCamera(localVideoEnabled); auto videoDirection = localVideoEnabled ? linphone::MediaDirection::SendRecv : linphone::MediaDirection::RecvOnly; params->setVideoDirection(videoDirection);