pipewire/node: Pass along 'media.role' node property too

This commit is contained in:
Jonas Ådahl 2019-05-10 18:42:19 +02:00 committed by Wim Taymans
parent 51e900c9d3
commit b1c193346e

View file

@ -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);