mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-07-23 19:25:08 +00:00
pipewire-v4l2: only compile V4L2_BUF_CAP_SUPPORTS* when defined
Fixes #1766
This commit is contained in:
parent
3c8a60944f
commit
9fee88239a
|
@ -1572,7 +1572,9 @@ static int vidioc_reqbufs(struct file *file, struct v4l2_requestbuffers *arg)
|
||||||
|
|
||||||
arg->count = file->n_buffers;
|
arg->count = file->n_buffers;
|
||||||
}
|
}
|
||||||
|
#ifdef V4L2_BUF_CAP_SUPPORTS_MMAP
|
||||||
arg->capabilities = V4L2_BUF_CAP_SUPPORTS_MMAP;
|
arg->capabilities = V4L2_BUF_CAP_SUPPORTS_MMAP;
|
||||||
|
#endif
|
||||||
memset(arg->reserved, 0, sizeof(arg->reserved));
|
memset(arg->reserved, 0, sizeof(arg->reserved));
|
||||||
|
|
||||||
pw_log_info("result count: %u", arg->count);
|
pw_log_info("result count: %u", arg->count);
|
||||||
|
|
Loading…
Reference in a new issue