v4l2: v4l2_camera_proxy: Set timestamp monotonic buffer flag on reqbufs
Set buffer flag V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC at VIDIOC_REQBUFS after the buffers have been allocated. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
d73ea3a252
commit
02802aa11f
1 changed files with 1 additions and 0 deletions
|
@ -404,6 +404,7 @@ int V4L2CameraProxy::vidioc_reqbufs(V4L2CameraFile *file, struct v4l2_requestbuf
|
|||
buf.memory = V4L2_MEMORY_MMAP;
|
||||
buf.m.offset = i * curV4L2Format_.fmt.pix.sizeimage;
|
||||
buf.index = i;
|
||||
buf.flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
|
||||
|
||||
buffers_[i] = buf;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue