summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2019-05-10 18:42:19 +0200
committerWim Taymans <wtaymans@redhat.com>2019-05-17 12:42:45 +0200
commitb1c193346e352315ba32889f7e5ffe486a69d1c8 (patch)
treef22eb3b82d9fef06b1f8429731e77d839c42a28f
parent51e900c9d3122118855bf6f26c7c080c1a368eee (diff)
pipewire/node: Pass along 'media.role' node property too
-rw-r--r--src/pipewire/node.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pipewire/node.c b/src/pipewire/node.c
index 921939cd..88de2aa3 100644
--- a/src/pipewire/node.c
+++ b/src/pipewire/node.c
@@ -487,6 +487,8 @@ int pw_node_register(struct pw_node *this,
if ((str = pw_properties_get(this->properties, "media.class")) != NULL)
pw_properties_set(properties, "media.class", str);
+ if ((str = pw_properties_get(this->properties, "media.role")) != NULL)
+ pw_properties_set(properties, "media.role", str);
pw_properties_set(properties, "node.name", this->info.name);
if ((str = pw_properties_get(this->properties, "node.session")) != NULL)
pw_properties_set(properties, "node.session", str);