impl-node: rework link activation

Only activate the links when the node is added to a driver. Otherwise
the driver will expect us to decrement the activation counters for the
links but that won't happen because the node will not be processed
yet.

Instead we activate the links that were not activated yet when the
node is activated.

This improves scheduling for newly added links and nodes.
This commit is contained in:
Wim Taymans 2021-03-10 13:06:02 +01:00
parent cc26ef9614
commit 62def0399f
3 changed files with 44 additions and 18 deletions

View file

@ -513,6 +513,7 @@ struct pw_node_target {
struct pw_node_activation *activation;
int (*signal) (void *data);
void *data;
unsigned int active:1;
};
struct pw_node_activation {