diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2020-06-24 02:48:12 +0900 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2020-06-25 23:46:56 +0900 |
commit | 02802aa11f0ba25718c09ac836188701065cba9a (patch) | |
tree | 91ee044602ab5b0a52b387ee7721a2f941fe4d18 | |
parent | d73ea3a252c6cc116faf19825d49bb7345512773 (diff) |
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>
-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 e55355a7..a411ea3e 100644 --- a/src/v4l2/v4l2_camera_proxy.cpp +++ b/src/v4l2/v4l2_camera_proxy.cpp @@ -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; } |