mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
context: emit change event when nodes are linked
This commit is contained in:
parent
b177f1d146
commit
35edefdaaf
1 changed files with 11 additions and 2 deletions
|
|
@ -258,8 +258,17 @@ static int set_mask(pa_context *c, struct global *g)
|
|||
if (g->link_info.src == NULL || g->link_info.dst == NULL)
|
||||
return 0;
|
||||
|
||||
pw_log_debug("link %d->%d", g->link_info.src->parent_id,
|
||||
g->link_info.dst->parent_id);
|
||||
pw_log_debug("link %d:%d->%d:%d",
|
||||
g->link_info.src->parent_id,
|
||||
g->link_info.src->id,
|
||||
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)
|
||||
emit_event(c, f, PA_SUBSCRIPTION_EVENT_CHANGE);
|
||||
if ((f = pa_context_find_global(c, g->link_info.dst->parent_id)) != NULL)
|
||||
emit_event(c, f, PA_SUBSCRIPTION_EVENT_CHANGE);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue