mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
4323a8ad4a
commit
0f27432f8c
1 changed files with 2 additions and 8 deletions
|
|
@ -956,14 +956,8 @@ static void check_properties(struct pw_impl_node *node)
|
||||||
recalc_reason = "link group changed";
|
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_NODE_PASSIVE)) == NULL)
|
||||||
if ((str = pw_properties_get(node->properties, PW_KEY_MEDIA_CLASS)) != NULL &&
|
str = "false";
|
||||||
(strstr(str, "/Sink") != NULL || strstr(str, "/Source") != NULL)) {
|
|
||||||
str = "true";
|
|
||||||
} else {
|
|
||||||
str = "false";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (spa_streq(str, "out"))
|
if (spa_streq(str, "out"))
|
||||||
node->out_passive = true;
|
node->out_passive = true;
|
||||||
else if (spa_streq(str, "in"))
|
else if (spa_streq(str, "in"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue