diff --git a/CHANGELOG.md b/CHANGELOG.md index 30803980e..e37a2d261 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,11 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - File viewer in chats (Image/Animated Image/Video/Texts) with the option to export the file. - Accept/decline CLI commands. -## 5.0.11 - udnefined +## 5.0.11 - undefined ### Fixed - Display of non-Ascii avatar - Crash on ending call in conference. +- Switch off camera at startup. ## 5.0.10 - 2023-02-02 diff --git a/linphone-app/src/components/core/CoreManager.cpp b/linphone-app/src/components/core/CoreManager.cpp index 73db430d4..01bfa2f6c 100644 --- a/linphone-app/src/components/core/CoreManager.cpp +++ b/linphone-app/src/components/core/CoreManager.cpp @@ -272,7 +272,6 @@ void CoreManager::createLinphoneCore (const QString &configPath) { mCore->addListener(mHandlers); mCore->setVideoDisplayFilter("MSQOGL"); mCore->usePreviewWindow(true); - mCore->enableVideoPreview(false); // Force capture/display. // Useful if the app was built without video support. // (The capture/display attributes are reset by the core in this case.) @@ -281,6 +280,8 @@ void CoreManager::createLinphoneCore (const QString &configPath) { config->setInt("video", "capture", 1); config->setInt("video", "display", 1); } + mCore->enableVideoPreview(false);// SDK doesn't write the state in configuration if not ready. + config->setInt("video", "show_local", 0);// So : write ourself to turn off camera before starting the core. QString userAgent = Utils::computeUserAgent(config); mCore->setUserAgent(Utils::appStringToCoreString(userAgent), mCore->getVersion()); mCore->start();