diff options
author | Wim Taymans <wtaymans@redhat.com> | 2018-02-07 11:56:00 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2018-02-07 11:56:00 +0100 |
commit | 9225ec29f24a11a6330ef99b0cc98c7522957469 (patch) | |
tree | e1c9a07f933a0a4350c6f55bb73e38cb03d5334b | |
parent | f9237eb0dbcf0a45f212446a12d8033d1c154d0e (diff) |
control: emit linked/unlinked event on both controls
-rw-r--r-- | src/pipewire/control.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pipewire/control.c b/src/pipewire/control.c index c37bfac8..2e5a09f8 100644 --- a/src/pipewire/control.c +++ b/src/pipewire/control.c @@ -192,6 +192,7 @@ int pw_control_link(struct pw_control *control, struct pw_control *other) spa_list_append(&control->inputs, &other->inputs_link); spa_hook_list_call(&control->listener_list, struct pw_control_events, linked, other); + spa_hook_list_call(&other->listener_list, struct pw_control_events, linked, control); exit: return res; @@ -237,6 +238,7 @@ int pw_control_unlink(struct pw_control *control, struct pw_control *other) } spa_hook_list_call(&control->listener_list, struct pw_control_events, unlinked, other); + spa_hook_list_call(&other->listener_list, struct pw_control_events, unlinked, control); exit: return res; |