mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -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
|
|
@ -515,7 +515,7 @@ core_global_added(void *data, struct pw_global *global)
|
|||
|
||||
pw_client_add_listener(client, &cinfo->client_listener, &client_events, cinfo);
|
||||
|
||||
spa_list_insert(impl->client_list.prev, &cinfo->link);
|
||||
spa_list_append(&impl->client_list, &cinfo->link);
|
||||
|
||||
pw_log_debug("module %p: client %p added", impl, client);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ static void *object_new(size_t size,
|
|||
this->skel = skel;
|
||||
this->destroy = destroy;
|
||||
|
||||
spa_list_insert(impl->object_list.prev, &this->link);
|
||||
spa_list_append(&impl->object_list, &this->link);
|
||||
|
||||
if (export)
|
||||
object_export(this);
|
||||
|
|
@ -243,7 +243,7 @@ static struct client *client_new(struct impl *impl, const char *sender)
|
|||
client_name_appeared_handler,
|
||||
client_name_vanished_handler, this, NULL);
|
||||
|
||||
spa_list_insert(impl->client_list.prev, &this->link);
|
||||
spa_list_append(&impl->client_list, &this->link);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue