Skip to content

Commit

Permalink
set TIMESTAMP flags
Browse files Browse the repository at this point in the history
  • Loading branch information
IOhannes m zmölnig authored and IOhannes m zmölnig committed Apr 25, 2023
1 parent d78f95b commit 845cea0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v4l2loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ static inline void v4l2l_get_timestamp(struct v4l2_buffer *b)

b->timestamp.tv_sec = ts.tv_sec;
b->timestamp.tv_usec = (ts.tv_nsec / NSEC_PER_USEC);
b->flags |= V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
}

#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)
Expand Down

0 comments on commit 845cea0

Please sign in to comment.