mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
use spa_list_append when we can
This commit is contained in:
parent
4aaa2cbc6b
commit
a691d07531
21 changed files with 41 additions and 42 deletions
|
|
@ -254,7 +254,7 @@ static void recycle_buffer(struct state *this, uint32_t buffer_id)
|
|||
spa_return_if_fail(b->outstanding);
|
||||
|
||||
b->outstanding = false;
|
||||
spa_list_insert(this->free.prev, &b->link);
|
||||
spa_list_append(&this->free, &b->link);
|
||||
}
|
||||
|
||||
static int clear_buffers(struct state *this)
|
||||
|
|
@ -448,7 +448,7 @@ impl_node_port_use_buffers(struct spa_node *node,
|
|||
spa_log_error(this->log, NAME " %p: need mapped memory", this);
|
||||
return SPA_RESULT_ERROR;
|
||||
}
|
||||
spa_list_insert(this->free.prev, &b->link);
|
||||
spa_list_append(&this->free, &b->link);
|
||||
}
|
||||
this->n_buffers = n_buffers;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue