summaryrefslogtreecommitdiff
path: root/src/libcamera/v4l2_device.cpp
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-01-29 15:18:42 +0100
committerJacopo Mondi <jacopo@jmondi.org>2019-02-05 14:03:16 +0100
commitf7e75d9e7081f6e1c0379cca5585b771e64a8ac6 (patch)
tree63ebea457dc98839bd6bb2a7da575d9bf9f1f4db /src/libcamera/v4l2_device.cpp
parentdd45866ea40f23738e461031eb971761c2c29576 (diff)
libcamera: v4l2_device: Construct from MediaEntity*
The V4L2Device constructor wants a "const MediaEntity &", while entities are usually retrieved by pointer before being used to construct a V4L2Device. Change the constructor argument to "const MediaEntity *". Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/libcamera/v4l2_device.cpp')
-rw-r--r--src/libcamera/v4l2_device.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index 4d1f76be..acb25586 100644
--- a/src/libcamera/v4l2_device.cpp
+++ b/src/libcamera/v4l2_device.cpp
@@ -169,8 +169,8 @@ V4L2Device::V4L2Device(const std::string &deviceNode)
*
* Construct a V4L2Device from a MediaEntity's device node path.
*/
-V4L2Device::V4L2Device(const MediaEntity &entity)
- : V4L2Device(entity.deviceNode())
+V4L2Device::V4L2Device(const MediaEntity *entity)
+ : V4L2Device(entity->deviceNode())
{
}