media-session: save last target_node

Keep a per node entry of the saved target node and use this when
there is no other target node.
When explicitly moving a stream, save the new target node.
This commit is contained in:
Wim Taymans 2020-10-14 12:35:27 +02:00
parent 1bd31c1cf1
commit 3733a5e219
4 changed files with 66 additions and 45 deletions

View file

@ -144,6 +144,9 @@ struct sm_node {
struct spa_list param_list; /**< list of sm_param */
struct pw_node_info *info;
struct spa_list port_list;
char *target_node; /** desired target node from stored
* preferences */
};
struct sm_port {