mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
client-node: improve cleanup
This commit is contained in:
parent
3777d9612e
commit
5ee287d79b
4 changed files with 25 additions and 9 deletions
|
|
@ -162,6 +162,7 @@ static void node_destroy(void *data)
|
|||
|
||||
pw_properties_free(n->props);
|
||||
spa_list_for_each_safe(p, tmp, &n->ports, link) {
|
||||
pw_port_set_mix(p->port, NULL, 0);
|
||||
spa_list_remove(&p->link);
|
||||
spa_handle_clear(p->spa_handle);
|
||||
free(p);
|
||||
|
|
|
|||
|
|
@ -588,11 +588,11 @@ impl_node_port_use_buffers(struct spa_node *node,
|
|||
|
||||
port = GET_PORT(this, direction, port_id);
|
||||
|
||||
spa_return_val_if_fail(port->have_format, -EIO);
|
||||
|
||||
spa_log_info(this->log, NAME " %p: use buffers %d on port %d:%d",
|
||||
this, n_buffers, direction, port_id);
|
||||
|
||||
spa_return_val_if_fail(port->have_format, -EIO);
|
||||
|
||||
clear_buffers(this, port);
|
||||
|
||||
for (i = 0; i < n_buffers; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue