Fix buffer re-use on short streaming

This commit is contained in:
Kamil Trzcinski
2022-04-04 22:52:31 +02:00
parent a20883e8f1
commit 6c628cfe72
4 changed files with 44 additions and 10 deletions

View File

@@ -53,10 +53,6 @@ buffer_t *buffer_open(const char *name, buffer_list_t *buf_list, int index) {
buf->dma_fd = v4l2_exp.fd;
}
if (buf_list->do_capture) {
buffer_consumed(buf);
}
return buf;
error: