mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
node: remove port_alloc_buffers
Remove the now obsolete port_alloc_buffer, rework to use the port_use_buffers with the ALLOC flag.
This commit is contained in:
parent
2f3351ef9b
commit
deb6c52f76
21 changed files with 60 additions and 462 deletions
|
|
@ -406,9 +406,10 @@ static int negotiate_formats(struct data *data)
|
|||
return -1;
|
||||
}
|
||||
n_buffers = MAX_BUFFERS;
|
||||
if ((res =
|
||||
spa_node_port_alloc_buffers(data->source, SPA_DIRECTION_OUTPUT, 0, NULL, 0,
|
||||
data->bp, &n_buffers)) < 0) {
|
||||
if ((res = spa_node_port_use_buffers(data->source,
|
||||
SPA_DIRECTION_OUTPUT, 0,
|
||||
SPA_NODE_BUFFERS_FLAG_ALLOC,
|
||||
data->bp, n_buffers)) < 0) {
|
||||
printf("can't allocate buffers: %s\n", spa_strerror(res));
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue