diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2020-06-24 02:46:37 +0900 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2020-06-25 23:41:36 +0900 |
commit | d73ea3a252c6cc116faf19825d49bb7345512773 (patch) | |
tree | 5b1ceb96b20d7faea2d56ca086a977a341ffdfcd /src | |
parent | 0eea47a956cfe6d3db780e974efb904070174b9a (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')
-rw-r--r-- | src/v4l2/v4l2_camera_proxy.cpp | 1 |
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(); |