mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
control: emit linked/unlinked event on both controls
This commit is contained in:
parent
f9237eb0db
commit
9225ec29f2
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue