impl-node: initialize the driving state correctly

A new node is driving only when it is a driver.
This commit is contained in:
Wim Taymans 2023-04-26 16:37:01 +02:00
parent 5303fced50
commit 5e6dc48013

View file

@ -1341,7 +1341,7 @@ struct pw_impl_node *pw_context_create_node(struct pw_context *context,
this->driver_node = this; this->driver_node = this;
spa_list_append(&this->follower_list, &this->follower_link); spa_list_append(&this->follower_list, &this->follower_link);
this->driving = true; this->driving = this->driver;
return this; return this;