mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 22:58:15 +00:00
feat(src/components/core/CoreManager): force capture/display attributes
This commit is contained in:
parent
6aceba9deb
commit
e2ddb9310a
1 changed files with 9 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue