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>
This commit is contained in:
parent
0eea47a956
commit
d73ea3a252
1 changed files with 1 additions and 0 deletions
|
@ -351,6 +351,7 @@ int V4L2CameraProxy::vidioc_reqbufs(V4L2CameraFile *file, struct v4l2_requestbuf
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
arg->capabilities = V4L2_BUF_CAP_SUPPORTS_MMAP;
|
arg->capabilities = V4L2_BUF_CAP_SUPPORTS_MMAP;
|
||||||
|
memset(arg->reserved, 0, sizeof(arg->reserved));
|
||||||
|
|
||||||
if (arg->count == 0) {
|
if (arg->count == 0) {
|
||||||
freeBuffers();
|
freeBuffers();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue