mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
parent
bc47378abc
commit
83443967a0
1 changed files with 2 additions and 0 deletions
|
|
@ -264,6 +264,7 @@ handle_node(struct impl *impl, struct sm_object *object)
|
|||
node->client_id = client_id;
|
||||
node->type = NODE_TYPE_UNKNOWN;
|
||||
spa_list_append(&impl->node_list, &node->link);
|
||||
impl->node_list_changed = true;
|
||||
|
||||
if (role && !strcmp(role, "DSP"))
|
||||
node->active = node->configured = true;
|
||||
|
|
@ -356,6 +357,7 @@ handle_node(struct impl *impl, struct sm_object *object)
|
|||
static void destroy_node(struct impl *impl, struct node *node)
|
||||
{
|
||||
spa_list_remove(&node->link);
|
||||
impl->node_list_changed = true;
|
||||
if (node->enabled)
|
||||
spa_hook_remove(&node->listener);
|
||||
free(node->media);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue