feat(src/components/core/CoreManager): force capture/display attributes

This commit is contained in:
Wescoeur 2017-06-13 21:10:51 +02:00
parent 6aceba9deb
commit e2ddb9310a

View file

@ -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<linphone::Config> config = mCore->getConfig();
config->setInt("video", "capture", 1);
config->setInt("video", "display", 1);
}
setDatabasesPaths();
setOtherPaths();
}