mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 12:48:03 +02:00
modules: fix small issues in the session items
This commit is contained in:
parent
fe12e8ab6f
commit
d61b7904f9
4 changed files with 5 additions and 4 deletions
|
|
@ -291,7 +291,7 @@ wp_si_factory_new_simple (const gchar * factory_name,
|
|||
g_return_val_if_fail (factory_name != NULL, NULL);
|
||||
g_return_val_if_fail (g_type_is_a (si_type, WP_TYPE_SESSION_ITEM), NULL);
|
||||
g_return_val_if_fail (
|
||||
g_variant_is_of_type (config_spec, G_VARIANT_TYPE ("a{sv}")), NULL);
|
||||
g_variant_is_of_type (config_spec, G_VARIANT_TYPE ("a(ssymv)")), NULL);
|
||||
|
||||
WpSimpleSiFactory *self = g_object_new (
|
||||
wp_simple_si_factory_get_type (), NULL);
|
||||
|
|
|
|||
|
|
@ -524,7 +524,7 @@ wireplumber__module_init (WpModule * module, WpCore * core, GVariant * args)
|
|||
{
|
||||
GVariantBuilder b;
|
||||
|
||||
g_variant_builder_init (&b, G_VARIANT_TYPE_VARDICT);
|
||||
g_variant_builder_init (&b, G_VARIANT_TYPE ("a(ssymv)"));
|
||||
g_variant_builder_add (&b, "(ssymv)", "node", "t",
|
||||
WP_SI_CONFIG_OPTION_WRITEABLE | WP_SI_CONFIG_OPTION_REQUIRED, NULL);
|
||||
g_variant_builder_add (&b, "(ssymv)", "name", "s",
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ si_simple_node_endpoint_reset (WpSessionItem * item)
|
|||
self->role[0] = '\0';
|
||||
self->priority = 0;
|
||||
self->direction = WP_DIRECTION_INPUT;
|
||||
wp_session_item_clear_flag (item, WP_SI_FLAG_CONFIGURED);
|
||||
}
|
||||
|
||||
static gpointer
|
||||
|
|
@ -395,7 +396,7 @@ wireplumber__module_init (WpModule * module, WpCore * core, GVariant * args)
|
|||
{
|
||||
GVariantBuilder b;
|
||||
|
||||
g_variant_builder_init (&b, G_VARIANT_TYPE_VARDICT);
|
||||
g_variant_builder_init (&b, G_VARIANT_TYPE ("a(ssymv)"));
|
||||
g_variant_builder_add (&b, "(ssymv)", "node", "t",
|
||||
WP_SI_CONFIG_OPTION_WRITEABLE | WP_SI_CONFIG_OPTION_REQUIRED, NULL);
|
||||
g_variant_builder_add (&b, "(ssymv)", "name", "s",
|
||||
|
|
|
|||
|
|
@ -457,7 +457,7 @@ wireplumber__module_init (WpModule * module, WpCore * core, GVariant * args)
|
|||
{
|
||||
GVariantBuilder b;
|
||||
|
||||
g_variant_builder_init (&b, G_VARIANT_TYPE_VARDICT);
|
||||
g_variant_builder_init (&b, G_VARIANT_TYPE ("a(ssymv)"));
|
||||
g_variant_builder_add (&b, "(ssymv)", "out-stream", "t",
|
||||
WP_SI_CONFIG_OPTION_WRITEABLE | WP_SI_CONFIG_OPTION_REQUIRED, NULL);
|
||||
g_variant_builder_add (&b, "(ssymv)", "in-stream", "t",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue