summaryrefslogtreecommitdiff
path: root/src/v4l2
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2020-01-08 11:06:16 +0100
committerJacopo Mondi <jacopo@jmondi.org>2020-01-08 17:41:36 +0100
commita5862a7a3423fbde7b7beaa8b65c8204fcca7785 (patch)
tree68eeb0a118f754045f4052932f26af693d94f824 /src/v4l2
parentfce110c6d961c3bb645289184c59d9443d56e224 (diff)
v4l2: camera_proxy: Align trace message style
Most of the ioctl handlers in the V4L2CameraProxy class have an empty line between the tracing printouts and the immediately following buffer type validation. Align the two occasions where such an empty line is missing with the others. Cosmetic change only. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/v4l2')
-rw-r--r--src/v4l2/v4l2_camera_proxy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/v4l2/v4l2_camera_proxy.cpp b/src/v4l2/v4l2_camera_proxy.cpp
index f3a49fea..89dd7166 100644
--- a/src/v4l2/v4l2_camera_proxy.cpp
+++ b/src/v4l2/v4l2_camera_proxy.cpp
@@ -292,6 +292,7 @@ int V4L2CameraProxy::vidioc_s_fmt(struct v4l2_format *arg)
int V4L2CameraProxy::vidioc_try_fmt(struct v4l2_format *arg)
{
LOG(V4L2Compat, Debug) << "Servicing vidioc_try_fmt";
+
if (!validateBufferType(arg->type))
return -EINVAL;
@@ -321,6 +322,7 @@ int V4L2CameraProxy::vidioc_reqbufs(struct v4l2_requestbuffers *arg)
int ret;
LOG(V4L2Compat, Debug) << "Servicing vidioc_reqbufs";
+
if (!validateBufferType(arg->type) ||
!validateMemoryType(arg->memory))
return -EINVAL;