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
@@ -319,7 +319,7 @@ int CamApp::run()
|
||||
}
|
||||
|
||||
if (options_.isSet(OptCapture)) {
|
||||
Capture capture(camera_.get(), config_.get());
|
||||
Capture capture(camera_, config_.get());
|
||||
return capture.run(loop_, options_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user