mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
impl-node: avoid scheduling the node before added
The Start command might be async and we should not schedule the node until the reply has arrived and we have actually added the node to the graph. Otherwise it is possible that the node is scheduled before it could complete the start command. This could be a problem for adapter because it does negotiation and so on in the Start call. See #2677
This commit is contained in:
parent
27211856eb
commit
ff84acdf3d
2 changed files with 13 additions and 0 deletions
|
|
@ -750,6 +750,7 @@ 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue