Kind of support FPS

This commit is contained in:
Kamil Trzcinski
2022-04-07 12:09:28 +02:00
parent 488c99310f
commit a56886cb6c
4 changed files with 26 additions and 6 deletions

View File

@ -180,6 +180,7 @@ buffer_t *buffer_list_dequeue(buffer_list_t *buf_list)
}
buf->v4l2_buffer.flags = v4l2_buf.flags;
buf->v4l2_buffer.timestamp = v4l2_buf.timestamp;
buf_list->last_dequeued_us = get_monotonic_time_us(NULL, NULL);
if (buf->mmap_reflinks > 0) {
E_LOG_PERROR(buf, "Buffer appears to be enqueued? (links=%d)", buf->mmap_reflinks);