libcamera: v4l2_subdevice: Fix S_SELECTION ioctl argument

The SUBDEV_S_SELECTION argument needs to be a pointer. Fix it.

Fixes: 468176fa07 ("libcamera: Add V4L2Subdevice")
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Jacopo Mondi 2019-02-18 18:28:01 +01:00
parent fbc67a54f3
commit 143b5cc33f

View file

@ -250,7 +250,7 @@ int V4L2Subdevice::setSelection(unsigned int pad, unsigned int target,
sel.r.width = rect->w; sel.r.width = rect->w;
sel.r.height = rect->h; 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) { if (ret < 0) {
ret = -errno; ret = -errno;
LOG(V4L2Subdev, Error) LOG(V4L2Subdev, Error)