mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-04 14:18:07 +02:00
modules: always use the node name when creating endpoints
This commit is contained in:
parent
cd3a414e2f
commit
d6ed17472a
2 changed files with 2 additions and 6 deletions
|
|
@ -110,8 +110,7 @@ on_node_added (WpObjectManager *om, WpProxy *proxy, struct impl *impl)
|
|||
/* Set the properties */
|
||||
g_variant_builder_init (&b, G_VARIANT_TYPE_VARDICT);
|
||||
g_variant_builder_add (&b, "{sv}",
|
||||
"name", g_variant_new_take_string (g_strdup_printf (
|
||||
"Alsa %u (%s)", wp_proxy_get_global_id (proxy), name)));
|
||||
"name", g_variant_new_take_string (g_strdup_printf ("%s", name)));
|
||||
g_variant_builder_add (&b, "{sv}",
|
||||
"media-class", g_variant_new_string (media_class));
|
||||
g_variant_builder_add (&b, "{sv}",
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ on_node_added (WpObjectManager *om, WpProxy *proxy, gpointer d)
|
|||
enum pw_direction direction;
|
||||
GVariantBuilder b;
|
||||
g_autoptr (GVariant) endpoint_props = NULL;
|
||||
guint32 id = wp_proxy_get_global_id (proxy);
|
||||
g_autoptr (WpProperties) props = wp_proxy_get_global_properties (proxy);
|
||||
g_autoptr (WpCore) core = NULL;
|
||||
|
||||
|
|
@ -85,9 +84,7 @@ on_node_added (WpObjectManager *om, WpProxy *proxy, gpointer d)
|
|||
/* Set the properties */
|
||||
g_variant_builder_init (&b, G_VARIANT_TYPE_VARDICT);
|
||||
g_variant_builder_add (&b, "{sv}",
|
||||
"name", name ?
|
||||
g_variant_new_take_string (g_strdup_printf ("Stream %u (%s)", id, name)) :
|
||||
g_variant_new_take_string (g_strdup_printf ("Stream %u", id)));
|
||||
"name", g_variant_new_take_string (g_strdup_printf ("%s", name)));
|
||||
g_variant_builder_add (&b, "{sv}",
|
||||
"media-class", g_variant_new_string (media_class));
|
||||
g_variant_builder_add (&b, "{sv}",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue