From 82289b2d1e7d13733b61197fceb604698d42651a Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 5 Feb 2018 17:08:28 +0100 Subject: [PATCH] Create and start linphone core separately. --- src/components/core/CoreManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/core/CoreManager.cpp b/src/components/core/CoreManager.cpp index 7379f3cf2..156e630d3 100644 --- a/src/components/core/CoreManager.cpp +++ b/src/components/core/CoreManager.cpp @@ -215,7 +215,8 @@ void CoreManager::createLinphoneCore (const QString &configPath) { setResourcesPaths(); - mCore = linphone::Factory::get()->createCore(mHandlers, Paths::getConfigFilePath(configPath), Paths::getFactoryConfigFilePath()); + mCore = linphone::Factory::get()->createCore(Paths::getConfigFilePath(configPath), Paths::getFactoryConfigFilePath(), nullptr); + mCore->addListener(mHandlers); mCore->setVideoDisplayFilter("MSOGL"); mCore->usePreviewWindow(true); @@ -230,6 +231,8 @@ void CoreManager::createLinphoneCore (const QString &configPath) { config->setInt("video", "display", 1); } + mCore->start(); + setDatabasesPaths(); setOtherPaths(); }