cam: Store camera as shared pointer everywhere
Do not store the camera raw pointer in the capture class, this will prevent forwarding the shared pointer in the future. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
Capture::Capture(Camera *camera, CameraConfiguration *config)
|
||||
Capture::Capture(std::shared_ptr<Camera> camera, CameraConfiguration *config)
|
||||
: camera_(camera), config_(config), writer_(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user