summaryrefslogtreecommitdiff
path: root/src/v4l2/v4l2_camera_proxy.cpp
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2020-06-24 02:46:37 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2020-06-25 23:41:36 +0900
commitd73ea3a252c6cc116faf19825d49bb7345512773 (patch)
tree5b1ceb96b20d7faea2d56ca086a977a341ffdfcd /src/v4l2/v4l2_camera_proxy.cpp
parent0eea47a956cfe6d3db780e974efb904070174b9a (diff)
v4l2: v4l2_camera_proxy: Clear reserved field in reqbufs
Clear the reserved field in arg struct v4l2_reqbuffers of VIDIOC_REQBUFS. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/v4l2/v4l2_camera_proxy.cpp')
-rw-r--r--src/v4l2/v4l2_camera_proxy.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/v4l2/v4l2_camera_proxy.cpp b/src/v4l2/v4l2_camera_proxy.cpp
index b23e1f9d..e55355a7 100644
--- a/src/v4l2/v4l2_camera_proxy.cpp
+++ b/src/v4l2/v4l2_camera_proxy.cpp
@@ -351,6 +351,7 @@ int V4L2CameraProxy::vidioc_reqbufs(V4L2CameraFile *file, struct v4l2_requestbuf
return -EBUSY;
arg->capabilities = V4L2_BUF_CAP_SUPPORTS_MMAP;
+ memset(arg->reserved, 0, sizeof(arg->reserved));
if (arg->count == 0) {
freeBuffers();