mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
pulse-server: skip objects being created
Skip iterating over objects that still have pending updates. Make sure we have all info and properties before we process objects. Fixes #376
This commit is contained in:
parent
041d1a142d
commit
22cec7823e
4 changed files with 24 additions and 26 deletions
|
|
@ -129,6 +129,8 @@ static struct pw_manager_object *select_object(struct pw_manager *m,
|
|||
const char *str;
|
||||
|
||||
spa_list_for_each(o, &m->object_list, link) {
|
||||
if (o->creating)
|
||||
continue;
|
||||
if (s->type != NULL && !s->type(o))
|
||||
continue;
|
||||
if (o->id == s->id)
|
||||
|
|
@ -150,6 +152,8 @@ static struct pw_manager_object *find_linked(struct pw_manager *m, uint32_t obj_
|
|||
uint32_t in_node, out_node;
|
||||
|
||||
spa_list_for_each(o, &m->object_list, link) {
|
||||
if (o->creating)
|
||||
continue;
|
||||
if (o->props == NULL || !is_link(o))
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue