summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-02-18 18:28:01 +0100
committerJacopo Mondi <jacopo@jmondi.org>2019-02-19 09:29:00 +0100
commit143b5cc33f356b7744865496d78d5979f70e9208 (patch)
tree136c01b0e37c45800e803a9d9e90383b5346e06c /src
parentfbc67a54f379654b5d785940850cb9f4edb22c62 (diff)
libcamera: v4l2_subdevice: Fix S_SELECTION ioctl argument
The SUBDEV_S_SELECTION argument needs to be a pointer. Fix it. Fixes: 468176fa07d9 ("libcamera: Add V4L2Subdevice") Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/v4l2_subdevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp
index 17f715fe..b436f73c 100644
--- a/src/libcamera/v4l2_subdevice.cpp
+++ b/src/libcamera/v4l2_subdevice.cpp
@@ -250,7 +250,7 @@ int V4L2Subdevice::setSelection(unsigned int pad, unsigned int target,
sel.r.width = rect->w;
sel.r.height = rect->h;
- int ret = ioctl(fd_, VIDIOC_SUBDEV_S_SELECTION, sel);
+ int ret = ioctl(fd_, VIDIOC_SUBDEV_S_SELECTION, &sel);
if (ret < 0) {
ret = -errno;
LOG(V4L2Subdev, Error)