mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05: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
|
|
@ -1055,7 +1055,7 @@ static struct client *client_new(struct impl *impl, int fd)
|
|||
goto no_source;
|
||||
|
||||
spa_list_init(&this->jack_clients);
|
||||
spa_list_insert(impl->client_list.prev, &this->link);
|
||||
spa_list_append(&impl->client_list, &this->link);
|
||||
|
||||
pw_client_add_listener(client, &this->client_listener, &client_events, this);
|
||||
|
||||
|
|
@ -1426,7 +1426,7 @@ static bool add_socket(struct impl *impl, struct socket *s)
|
|||
if (s->source == NULL)
|
||||
return false;
|
||||
|
||||
spa_list_insert(impl->socket_list.prev, &s->link);
|
||||
spa_list_append(&impl->socket_list, &s->link);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue