From e2ddb9310af6b8cf51871395038dedaa373368fa Mon Sep 17 00:00:00 2001 From: Wescoeur Date: Tue, 13 Jun 2017 21:10:51 +0200 Subject: [PATCH] feat(src/components/core/CoreManager): force capture/display attributes --- linphone-desktop/src/components/core/CoreManager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/linphone-desktop/src/components/core/CoreManager.cpp b/linphone-desktop/src/components/core/CoreManager.cpp index 7f26980b7..73114dd11 100644 --- a/linphone-desktop/src/components/core/CoreManager.cpp +++ b/linphone-desktop/src/components/core/CoreManager.cpp @@ -138,6 +138,15 @@ void CoreManager::createLinphoneCore (const QString &configPath) { mCore->usePreviewWindow(true); mCore->setUserAgent("Linphone Desktop", LINPHONE_QT_GIT_VERSION); + // Force capture/display. + // Useful if the app was built without video support. + // (The capture/display attributes are reset by the core in this case.) + if (mCore->videoSupported()) { + shared_ptr config = mCore->getConfig(); + config->setInt("video", "capture", 1); + config->setInt("video", "display", 1); + } + setDatabasesPaths(); setOtherPaths(); }