roc: NODE_PASSIVE can only be on the streams

Don't put NODE_PASSIVE on sinks/sources because it will request passive
links to the linked node and thus not be activated.

Fixes #2045
This commit is contained in:
Wim Taymans 2022-01-20 21:47:37 +01:00
parent 6a892c27b0
commit 695f8dfdd9
2 changed files with 0 additions and 4 deletions

View file

@ -441,8 +441,6 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
pw_properties_set(capture_props, PW_KEY_NODE_VIRTUAL, "true");
if (pw_properties_get(capture_props, PW_KEY_NODE_NETWORK) == NULL)
pw_properties_set(capture_props, PW_KEY_NODE_NETWORK, "true");
if (pw_properties_get(capture_props, PW_KEY_NODE_PASSIVE) == NULL)
pw_properties_set(capture_props, PW_KEY_NODE_PASSIVE, "true");
if ((str = pw_properties_get(capture_props, PW_KEY_MEDIA_CLASS)) == NULL)
pw_properties_set(capture_props, PW_KEY_MEDIA_CLASS, "Audio/Sink");