mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-22 08:05:06 +03:00
v4l2: camera_proxy: Fix compilation error use of undeclared identifier 'ret'
Refactoring of the camera_proxy have left the 'ret' variable undeclared,
declare it.
../../src/v4l2/v4l2_camera_proxy.cpp:273:2: error: use of undeclared identifier 'ret'
ret = vcam_->invokeMethod(&V4L2Camera::configure,
^
../../src/v4l2/v4l2_camera_proxy.cpp:278:6: error: use of undeclared identifier 'ret'
if (ret < 0)
Fixes: fce110c6d9
("v4l2: camera_proxy: Break out try_fmt")
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Acked-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
a5862a7a34
commit
96eaad1238
1 changed files with 5 additions and 5 deletions
|
@ -270,11 +270,11 @@ int V4L2CameraProxy::vidioc_s_fmt(struct v4l2_format *arg)
|
||||||
tryFormat(arg);
|
tryFormat(arg);
|
||||||
|
|
||||||
Size size(arg->fmt.pix.width, arg->fmt.pix.height);
|
Size size(arg->fmt.pix.width, arg->fmt.pix.height);
|
||||||
ret = vcam_->invokeMethod(&V4L2Camera::configure,
|
int ret = vcam_->invokeMethod(&V4L2Camera::configure,
|
||||||
ConnectionTypeBlocking,
|
ConnectionTypeBlocking,
|
||||||
&streamConfig_, size,
|
&streamConfig_, size,
|
||||||
v4l2ToDrm(arg->fmt.pix.pixelformat),
|
v4l2ToDrm(arg->fmt.pix.pixelformat),
|
||||||
bufferCount_);
|
bufferCount_);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue