Move int nbufs into buffer_list_open

This commit is contained in:
Kamil Trzcinski
2022-04-11 08:57:16 +02:00
parent e4673851c1
commit 95c7b06e1e
13 changed files with 44 additions and 72 deletions

View File

@ -75,15 +75,11 @@ int device_open_buffer_list(device_t *dev, bool do_capture, unsigned width, unsi
sprintf(name, "%s:output", dev->name);
}
*buf_list = buffer_list_open(name, dev, width, height, format, bytesperline, do_capture, do_mmap);
*buf_list = buffer_list_open(name, dev, width, height, format, bytesperline, nbufs, do_capture, do_mmap);
if (!*buf_list) {
goto error;
}
if (buffer_list_set_buffers(*buf_list, nbufs) < 0) {
goto error;
}
return 0;
error: