mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
impl-node: remove the node from the target peers
When we destroy a node, we need to remove the node as a current driver peer. Not doing this has 2 problems: - remote drivers still trigger our node - the client-node does not clean up the memid for the activation and we might reuse it later for a new node with the same fd. See #3316
This commit is contained in:
parent
098ac51272
commit
4456f2efd1
1 changed files with 1 additions and 0 deletions
|
|
@ -1983,6 +1983,7 @@ void pw_impl_node_destroy(struct pw_impl_node *node)
|
|||
|
||||
/* remove ourself as a follower from the driver node */
|
||||
spa_list_remove(&node->follower_link);
|
||||
pw_impl_node_emit_peer_removed(node->driver_node, node);
|
||||
remove_segment_owner(node->driver_node, node->info.id);
|
||||
|
||||
spa_list_consume(follower, &node->follower_list, follower_link) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue