modules: align tunnel.mode

Source for a source, sink for a sink. We use capture and playback for
streams that link to a source/sink respectively.
This commit is contained in:
Wim Taymans 2022-06-03 10:51:46 +02:00
parent fe1652e843
commit 87172fde06
4 changed files with 19 additions and 19 deletions

View file

@ -311,7 +311,7 @@ static void resolver_cb(AvahiServiceResolver *r, AvahiIfIndex interface, AvahiPr
pw_properties_setf(props, PW_KEY_NODE_NAME,
"tunnel.%s", host_name);
str = strstr(type, "sink") ? "playback" : "capture";
str = strstr(type, "sink") ? "sink" : "source";
pw_properties_set(props, "tunnel.mode", str);
if (a->proto == AVAHI_PROTO_INET6 &&