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

@ -388,6 +388,7 @@ static int create_streams(struct impl *impl, struct client *client)
PW_KEY_NODE_GROUP, "pipewire.dummy",
PW_KEY_NODE_LATENCY, DEFAULT_LATENCY,
PW_KEY_NODE_TARGET, pw_properties_get(impl->props, "capture.node"),
PW_KEY_NODE_NETWORK, "true",
NULL);
if (props == NULL)
return -errno;
@ -408,6 +409,7 @@ static int create_streams(struct impl *impl, struct client *client)
PW_KEY_NODE_GROUP, "pipewire.dummy",
PW_KEY_NODE_LATENCY, DEFAULT_LATENCY,
PW_KEY_NODE_TARGET, pw_properties_get(impl->props, "playback.node"),
PW_KEY_NODE_NETWORK, "true",
NULL);
if (props == NULL)
return -errno;