From 2b328583ec3a14a5853ba63dc4d8008aec976a04 Mon Sep 17 00:00:00 2001 From: gaelle Date: Wed, 6 Aug 2025 09:41:40 +0200 Subject: [PATCH] fix : do not force capture and display unless video is not supported --- Linphone/model/core/CoreModel.cpp | 6 +++--- Linphone/view/Page/Layout/Main/MainLayout.qml | 5 ----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Linphone/model/core/CoreModel.cpp b/Linphone/model/core/CoreModel.cpp index 659db7273..a2b0c6ab2 100644 --- a/Linphone/model/core/CoreModel.cpp +++ b/Linphone/model/core/CoreModel.cpp @@ -85,9 +85,9 @@ void CoreModel::start() { // Useful if the app was built without video support. // (The capture/display attributes are reset by the core in this case.) auto config = mCore->getConfig(); - if (mCore->videoSupported()) { - config->setInt("video", "capture", 1); - config->setInt("video", "display", 1); + if (!mCore->videoSupported()) { + config->setInt("video", "capture", 0); + config->setInt("video", "display", 0); } // TODO : set the real transport type when sdk will be updated diff --git a/Linphone/view/Page/Layout/Main/MainLayout.qml b/Linphone/view/Page/Layout/Main/MainLayout.qml index b00b46cd8..da3aa6d2a 100644 --- a/Linphone/view/Page/Layout/Main/MainLayout.qml +++ b/Linphone/view/Page/Layout/Main/MainLayout.qml @@ -1,8 +1,3 @@ - - -/** -* Qml template used for welcome and login/register pages -**/ import QtCore import QtQuick import QtQuick.Layouts