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:
parent
fbc67a54f3
commit
143b5cc33f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue