mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
jack: emit graph callbacks as well
When a link is added and removed, emit the graph callback.
This commit is contained in:
parent
a3549deb48
commit
aab72ded6e
1 changed files with 2 additions and 0 deletions
|
|
@ -2713,6 +2713,7 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
case INTERFACE_Link:
|
||||
do_callback(c, connect_callback,
|
||||
o->port_link.src, o->port_link.dst, 1, c->connect_arg);
|
||||
do_callback(c, graph_callback, c->graph_arg);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -2764,6 +2765,7 @@ static void registry_event_global_remove(void *object, uint32_t id)
|
|||
o->port_link.src, o->port_link.dst);
|
||||
do_callback(c, connect_callback,
|
||||
o->port_link.src, o->port_link.dst, 0, c->connect_arg);
|
||||
do_callback(c, graph_callback, c->graph_arg);
|
||||
} else
|
||||
pw_log_warn("unlink between unknown ports %d and %d",
|
||||
o->port_link.src, o->port_link.dst);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue