mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-02 14:28:11 +02:00
m-si-adapter: use the adapter's name as stream name
This commit is contained in:
parent
b2438f2cef
commit
236f6f8fc5
2 changed files with 4 additions and 3 deletions
|
|
@ -449,12 +449,13 @@ si_adapter_endpoint_init (WpSiEndpointInterface * iface)
|
|||
}
|
||||
|
||||
static GVariant *
|
||||
si_adapter_get_stream_registration_info (WpSiStream * self)
|
||||
si_adapter_get_stream_registration_info (WpSiStream * stream)
|
||||
{
|
||||
WpSiAdapter *self = WP_SI_ADAPTER (stream);
|
||||
GVariantBuilder b;
|
||||
|
||||
g_variant_builder_init (&b, G_VARIANT_TYPE ("(sa{ss})"));
|
||||
g_variant_builder_add (&b, "s", "default");
|
||||
g_variant_builder_add (&b, "s", self->name);
|
||||
g_variant_builder_add (&b, "a{ss}", NULL);
|
||||
|
||||
return g_variant_builder_end (&b);
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ test_si_audio_softdsp_endpoint_configure_activate (TestFixture * f,
|
|||
const gchar *stream_name;
|
||||
|
||||
g_variant_get (info, "(&sa{ss})", &stream_name, NULL);
|
||||
g_assert_cmpstr (stream_name, ==, "default");
|
||||
g_assert_cmpstr (stream_name, ==, "audiotestsrc.adapter");
|
||||
g_assert_true ((gpointer) stream == (gpointer) adapter);
|
||||
} else {
|
||||
for (guint i = 0; i < requested_streams; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue