diff --git a/Linphone/core/camera/CameraGui.cpp b/Linphone/core/camera/CameraGui.cpp index 6bad6c8b..a71a1a13 100644 --- a/Linphone/core/camera/CameraGui.cpp +++ b/Linphone/core/camera/CameraGui.cpp @@ -41,8 +41,11 @@ CameraGui::CameraGui(QQuickItem *parent) : QQuickFramebufferObject(parent) { mRefreshTimer.start(); } + +// TODO : Deactivate only if there are no previews to display (Could be open in settings and calls) CameraGui::~CameraGui() { mustBeInMainThread("~" + getClassName()); + App::postModelSync([this]() { CoreModel::getInstance()->getCore()->enableVideoPreview(false); }); } QQuickFramebufferObject::Renderer *CameraGui::createRenderer() const {