summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2018-02-07 11:56:00 +0100
committerWim Taymans <wtaymans@redhat.com>2018-02-07 11:56:00 +0100
commit9225ec29f24a11a6330ef99b0cc98c7522957469 (patch)
treee1c9a07f933a0a4350c6f55bb73e38cb03d5334b
parentf9237eb0dbcf0a45f212446a12d8033d1c154d0e (diff)
control: emit linked/unlinked event on both controls
-rw-r--r--src/pipewire/control.c2
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;