buffer: if last buffer is discovered restart streaming

This commit is contained in:
Kamil Trzcinski
2023-02-24 19:59:56 +01:00
parent 6c14564e75
commit 49c7d01789
4 changed files with 27 additions and 0 deletions

View File

@@ -151,6 +151,7 @@ int v4l2_buffer_list_dequeue(buffer_list_t *buf_list, buffer_t **bufp)
buf->v4l2->flags = v4l2_buf.flags;
buf->flags.is_keyframe = (v4l2_buf.flags & V4L2_BUF_FLAG_KEYFRAME) != 0;
buf->flags.is_last = (v4l2_buf.flags & V4L2_BUF_FLAG_LAST) != 0;
buf->captured_time_us = get_time_us(CLOCK_FROM_PARAMS, NULL, &v4l2_buf.timestamp, 0);
return 0;