Revert "impl-node: assume Sink/Source nodes are passive"

This reverts commit 67999f0f9c.

This breaks direct links between two devices because all ports are
passive. This needs some more thinking.
This commit is contained in:
Wim Taymans 2023-03-28 17:26:14 +02:00
parent 4323a8ad4a
commit 0f27432f8c

View file

@ -956,14 +956,8 @@ static void check_properties(struct pw_impl_node *node)
recalc_reason = "link group changed";
}
if ((str = pw_properties_get(node->properties, PW_KEY_NODE_PASSIVE)) == NULL) {
if ((str = pw_properties_get(node->properties, PW_KEY_MEDIA_CLASS)) != NULL &&
(strstr(str, "/Sink") != NULL || strstr(str, "/Source") != NULL)) {
str = "true";
} else {
str = "false";
}
}
if ((str = pw_properties_get(node->properties, PW_KEY_NODE_PASSIVE)) == NULL)
str = "false";
if (spa_streq(str, "out"))
node->out_passive = true;
else if (spa_streq(str, "in"))