mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
v4l2: use 32 buffers max
We don't yet probe the number of available buffers and so we might claim to support 64 buffers but then fail to allocate that many buffers in _use_buffers().
This commit is contained in:
parent
5b3336ce3e
commit
c44d655516
3 changed files with 9 additions and 3 deletions
|
|
@ -58,7 +58,7 @@ static void reset_props(struct props *props)
|
|||
strncpy(props->device, default_device, 64);
|
||||
}
|
||||
|
||||
#define MAX_BUFFERS 64
|
||||
#define MAX_BUFFERS 32
|
||||
|
||||
#define BUFFER_FLAG_OUTSTANDING (1<<0)
|
||||
#define BUFFER_FLAG_ALLOCATED (1<<1)
|
||||
|
|
@ -567,6 +567,7 @@ static int port_set_format(void *object,
|
|||
spa_v4l2_stream_off(this);
|
||||
spa_v4l2_clear_buffers(this);
|
||||
port->have_format = false;
|
||||
port->dev.have_format = false;
|
||||
spa_v4l2_close(&port->dev);
|
||||
goto done;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue