diff options
Diffstat (limited to 'src/libcamera/include/device_enumerator.h')
-rw-r--r-- | src/libcamera/include/device_enumerator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/include/device_enumerator.h b/src/libcamera/include/device_enumerator.h index 40c7750b..3f87a625 100644 --- a/src/libcamera/include/device_enumerator.h +++ b/src/libcamera/include/device_enumerator.h @@ -42,13 +42,13 @@ public: virtual int init() = 0; virtual int enumerate() = 0; - MediaDevice *search(const DeviceMatch &dm); + std::shared_ptr<MediaDevice> search(const DeviceMatch &dm); protected: int addDevice(const std::string &deviceNode); private: - std::vector<MediaDevice *> devices_; + std::vector<std::shared_ptr<MediaDevice>> devices_; virtual std::string lookupDeviceNode(int major, int minor) = 0; }; |