diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-10-27 21:20:10 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-11-20 17:19:58 +0100 |
commit | 1d32f21136c641318e78b1ba6f075d8865cd51c1 (patch) | |
tree | e331407b27f30e0c954e82fbd7fd1d2e4581931c /src/cam/capture.cpp | |
parent | bcf42994530a0112ac250a1640562edc16353299 (diff) |
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>
Diffstat (limited to 'src/cam/capture.cpp')
-rw-r--r-- | src/cam/capture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cam/capture.cpp b/src/cam/capture.cpp index 27332df1..e665d819 100644 --- a/src/cam/capture.cpp +++ b/src/cam/capture.cpp @@ -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) { } |