media-session: use direction to find the node by name

Also use the stream direction when finding a node by name. We should
only select nodes that have the right direction.
This commit is contained in:
Wim Taymans 2021-05-31 15:40:26 +02:00
parent d37ea7851a
commit b0068fd46b
2 changed files with 6 additions and 4 deletions

View file

@ -1861,7 +1861,7 @@ static int link_nodes(struct impl *impl, struct endpoint_link *link,
inport = find_input_port(impl, outnode, outport, innode);
if (inport == NULL) {
pw_log_debug(NAME" %p: port %d:%d can't be linked", impl,
pw_log_debug(NAME" %p: port %d:%d can't be linked, no input port", impl,
outport->direction, outport->obj.id);
continue;
}