pulse-server: list NETWORK flag on devices

Mark network sinks and sources with node.network.
This commit is contained in:
Wim Taymans 2021-10-14 13:45:58 +02:00
parent d6c1479ba0
commit 8c346ab3a7
6 changed files with 13 additions and 0 deletions

View file

@ -439,6 +439,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
pw_properties_set(capture_props, PW_KEY_NODE_GROUP, "pipewire.dummy");
if (pw_properties_get(capture_props, PW_KEY_NODE_VIRTUAL) == NULL)
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)