summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/vimc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/pipeline/vimc.cpp')
-rw-r--r--src/libcamera/pipeline/vimc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp
index 82b9237a..f12d007c 100644
--- a/src/libcamera/pipeline/vimc.cpp
+++ b/src/libcamera/pipeline/vimc.cpp
@@ -17,17 +17,17 @@ namespace libcamera {
class PipeHandlerVimc : public PipelineHandler
{
public:
- PipeHandlerVimc();
+ PipeHandlerVimc(CameraManager *manager);
~PipeHandlerVimc();
- bool match(CameraManager *manager, DeviceEnumerator *enumerator);
+ bool match(DeviceEnumerator *enumerator);
private:
MediaDevice *dev_;
};
-PipeHandlerVimc::PipeHandlerVimc()
- : dev_(nullptr)
+PipeHandlerVimc::PipeHandlerVimc(CameraManager *manager)
+ : PipelineHandler(manager), dev_(nullptr)
{
}
@@ -37,7 +37,7 @@ PipeHandlerVimc::~PipeHandlerVimc()
dev_->release();
}
-bool PipeHandlerVimc::match(CameraManager *manager, DeviceEnumerator *enumerator)
+bool PipeHandlerVimc::match(DeviceEnumerator *enumerator)
{
DeviceMatch dm("vimc");
@@ -65,7 +65,7 @@ bool PipeHandlerVimc::match(CameraManager *manager, DeviceEnumerator *enumerator
* object is modeled.
*/
std::shared_ptr<Camera> camera = Camera::create("Dummy VIMC Camera");
- manager->addCamera(std::move(camera));
+ manager_->addCamera(std::move(camera));
return true;
}