mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 08:58:01 +02:00
m-si-adapter: set the configured flag when configuration was successful
This commit is contained in:
parent
c603409c60
commit
b2438f2cef
2 changed files with 7 additions and 0 deletions
|
|
@ -173,6 +173,7 @@ si_adapter_configure (WpSessionItem * item, GVariant * args)
|
|||
g_variant_lookup (args, "enable-control-port", "b", &self->control_port);
|
||||
g_variant_lookup (args, "enable-monitor", "b", &self->monitor);
|
||||
|
||||
wp_session_item_set_flag (item, WP_SI_FLAG_CONFIGURED);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -98,6 +98,9 @@ test_si_audio_softdsp_endpoint_configure_activate (TestFixture * f,
|
|||
wp_session_item_configure (adapter, g_variant_builder_end (&b)));
|
||||
}
|
||||
|
||||
g_assert_cmphex (wp_session_item_get_flags (adapter), ==,
|
||||
WP_SI_FLAG_CONFIGURED);
|
||||
|
||||
{
|
||||
g_autoptr (GVariant) v = wp_session_item_get_configuration (adapter);
|
||||
guint64 node_i;
|
||||
|
|
@ -164,6 +167,9 @@ test_si_audio_softdsp_endpoint_configure_activate (TestFixture * f,
|
|||
wp_session_item_configure (stream, g_variant_builder_end (&b)));
|
||||
}
|
||||
|
||||
g_assert_cmphex (wp_session_item_get_flags (stream), ==,
|
||||
WP_SI_FLAG_CONFIGURED);
|
||||
|
||||
g_assert_true (wp_session_bin_add (WP_SESSION_BIN (endpoint),
|
||||
g_steal_pointer (&stream)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue