impl-node: set driving state correctly

If a node becomes a driver and it had itself as the driver, it also
becomes a driving node.
This commit is contained in:
Wim Taymans 2023-04-30 10:16:29 +02:00
parent 7c5b61295d
commit 663e6f1bf5

View file

@ -914,6 +914,8 @@ static void check_properties(struct pw_impl_node *node)
else
spa_list_remove(&node->driver_link);
}
if (driver && node->driver_node == node)
node->driving = true;
recalc_reason = "driver changed";
}