Fix buffer reenqueing
This commit is contained in:
parent
eca9c43af7
commit
a3f5c002bb
@ -68,7 +68,7 @@ error:
|
|||||||
{
|
{
|
||||||
buffer_t *mmap_source = buf->mmap_source;
|
buffer_t *mmap_source = buf->mmap_source;
|
||||||
buf->mmap_source = NULL;
|
buf->mmap_source = NULL;
|
||||||
buf->mmap_reflinks--;
|
buf->mmap_reflinks++;
|
||||||
pthread_mutex_unlock(&buffer_lock);
|
pthread_mutex_unlock(&buffer_lock);
|
||||||
|
|
||||||
if (mmap_source) {
|
if (mmap_source) {
|
||||||
|
@ -196,7 +196,7 @@ int links_step(link_t *all_links, int *timeout_ms)
|
|||||||
return -1;
|
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) {
|
if (!buf_list->device->paused && buf_list->do_capture && buf_list->do_mmap) {
|
||||||
buffer_t *buf;
|
buffer_t *buf;
|
||||||
int count_enqueued = buffer_list_count_enqueued(buf_list);
|
int count_enqueued = buffer_list_count_enqueued(buf_list);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user