node: keep better track of driver node

When a session disappears, try to move nodes to another session.
This commit is contained in:
Wim Taymans 2018-05-17 17:40:08 +02:00
parent 1bff5afe05
commit ef9fcd1093
7 changed files with 144 additions and 72 deletions

View file

@ -265,6 +265,8 @@ struct pw_node {
* is selected to drive the graph */
struct pw_node *driver_node;
struct spa_list driver_list;
struct spa_list driver_link;
struct spa_clock *clock; /**< handle to SPA clock if any */
struct spa_node *node; /**< SPA node implementation */
@ -615,6 +617,8 @@ int pw_node_update_ports(struct pw_node *node);
int pw_node_initialized(struct pw_node *node);
int pw_node_set_driver(struct pw_node *node, struct pw_node *driver);
/** Activate a link \memberof pw_link
* Starts the negotiation of formats and buffers on \a link and then
* starts data streaming */