summaryrefslogtreecommitdiff
path: root/src/cam/capture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/capture.h')
-rw-r--r--src/cam/capture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cam/capture.h b/src/cam/capture.h
index 4d396afb..c692d489 100644
--- a/src/cam/capture.h
+++ b/src/cam/capture.h
@@ -21,7 +21,7 @@
class Capture
{
public:
- Capture(libcamera::Camera *camera,
+ Capture(std::shared_ptr<libcamera::Camera> camera,
libcamera::CameraConfiguration *config);
int run(EventLoop *loop, const OptionsParser::Options &options);
@@ -30,7 +30,7 @@ private:
void requestComplete(libcamera::Request *request);
- libcamera::Camera *camera_;
+ std::shared_ptr<libcamera::Camera> camera_;
libcamera::CameraConfiguration *config_;
std::map<libcamera::Stream *, std::string> streamName_;