Fix buffer reenqueing

This commit is contained in:
Kamil Trzcinski 2022-04-07 19:09:35 +02:00
parent eca9c43af7
commit a3f5c002bb
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ error:
{
buffer_t *mmap_source = buf->mmap_source;
buf->mmap_source = NULL;
buf->mmap_reflinks--;
buf->mmap_reflinks++;
pthread_mutex_unlock(&buffer_lock);
if (mmap_source) {

View File

@ -196,7 +196,7 @@ int links_step(link_t *all_links, int *timeout_ms)
return -1;
}
// feed capture queue (two buffers max)
// feed capture queue (two buffers)
if (!buf_list->device->paused && buf_list->do_capture && buf_list->do_mmap) {
buffer_t *buf;
int count_enqueued = buffer_list_count_enqueued(buf_list);