mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
context: wait till nodes are initialized before notify
This commit is contained in:
parent
bfd805a19e
commit
5e2b740ee0
2 changed files with 8 additions and 3 deletions
|
|
@ -588,9 +588,11 @@ static int set_mask(pa_context *c, struct global *g)
|
|||
g->link_info.dst->parent_id,
|
||||
g->link_info.dst->id);
|
||||
|
||||
if ((f = pa_context_find_global(c, g->link_info.src->parent_id)) != NULL)
|
||||
if ((f = pa_context_find_global(c, g->link_info.src->parent_id)) != NULL &&
|
||||
!f->init)
|
||||
emit_event(c, f, PA_SUBSCRIPTION_EVENT_CHANGE);
|
||||
if ((f = pa_context_find_global(c, g->link_info.dst->parent_id)) != NULL)
|
||||
if ((f = pa_context_find_global(c, g->link_info.dst->parent_id)) != NULL &&
|
||||
!f->init)
|
||||
emit_event(c, f, PA_SUBSCRIPTION_EVENT_CHANGE);
|
||||
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue