impl-node: only activate input links after adding node

Only activate the input links to a node after the node has been added to
the graph.

This ensure that we don't accidentaly schedule the node before the Start
command has completed and the node is actually ready to process data.
This commit is contained in:
Wim Taymans 2022-09-08 11:18:08 +02:00
parent ff84acdf3d
commit 900621ba9e
3 changed files with 28 additions and 20 deletions

View file

@ -704,6 +704,7 @@ struct pw_impl_node {
unsigned int transport_sync:1; /**< supports transport sync */
unsigned int current_pending:1; /**< a quantum/rate update is pending */
unsigned int moved:1; /**< the node was moved drivers */
unsigned int added:1; /**< the node was add to graph */
uint32_t port_user_data_size; /**< extra size for port user data */
@ -750,7 +751,6 @@ struct pw_impl_node {
struct spa_list driver_link; /* our link in driver */
struct ratelimit rate_limit;
unsigned int added:1; /**< the node was add to graph */
} rt;
struct spa_fraction current_rate;
uint64_t current_quantum;