[libcamera-devel] [PATCH 03/14] qcam: Remove double stop of the camera manager

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sun Aug 18 03:13:18 CEST 2019


The camera manager is stopped both in the destructor of the MainWindow
class and in the main() function. This double stop isn't needed, remove
the former and keep the latter as the manager is started in the main()
function.

Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 src/qcam/main_window.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp
index dcb653e81a29..33fde8b10fd8 100644
--- a/src/qcam/main_window.cpp
+++ b/src/qcam/main_window.cpp
@@ -51,8 +51,6 @@ MainWindow::~MainWindow()
 		camera_->release();
 		camera_.reset();
 	}
-
-	CameraManager::instance()->stop();
 }
 
 void MainWindow::updateTitle()
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list