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

This commit is contained in:
Jonas Ådahl 2019-05-10 18:42:19 +02:00
parent 5f507c804f
commit 3ce0c4b81a

View file

@ -351,6 +351,8 @@ int pw_node_register(struct pw_node *this,
if ((str = pw_properties_get(this->properties, "media.class")) != NULL) if ((str = pw_properties_get(this->properties, "media.class")) != NULL)
pw_properties_set(properties, "media.class", str); 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); pw_properties_set(properties, "node.name", this->info.name);
spa_list_append(&core->node_list, &this->link); spa_list_append(&core->node_list, &this->link);