policy: link endpoints based on direction and media

This commit is contained in:
Wim Taymans 2019-12-16 11:27:19 +01:00
parent cc139a07bb
commit 5cfb155827
2 changed files with 24 additions and 90 deletions

View file

@ -521,7 +521,8 @@ handle_node(struct impl *impl, struct sm_object *obj)
node->id = obj->id;
node->direction = direction;
node->media = strdup(media_class);
pw_log_debug(NAME "%p: node %d is stream %s", impl, node->id, node->media);
pw_log_debug(NAME "%p: node %d is stream %d:%s", impl, node->id,
node->direction, node->media);
sm_object_add_listener(obj, &node->listener, &object_events, node);