Skip to content
Snippets Groups Projects
Commit b2438f2c authored by Julian Bouzas's avatar Julian Bouzas
Browse files

m-si-adapter: set the configured flag when configuration was successful

parent c603409c
No related branches found
No related tags found
No related merge requests found
......@@ -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)));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment