impl-node: derive from WpProxy
This commit is contained in:
@@ -53,14 +53,14 @@ static void
|
||||
wp_config_static_objects_context_create_node (WpConfigStaticObjectsContext *self,
|
||||
const struct WpParserNodeData *node_data)
|
||||
{
|
||||
g_autoptr (GObject) node = NULL;
|
||||
g_autoptr (WpObject) node = NULL;
|
||||
g_return_if_fail (self->local_core);
|
||||
|
||||
/* Create the node */
|
||||
node = node_data->n.local ?
|
||||
(GObject *) wp_impl_node_new_from_pw_factory (self->local_core,
|
||||
(WpObject *) wp_impl_node_new_from_pw_factory (self->local_core,
|
||||
node_data->n.factory, wp_properties_ref (node_data->n.props)) :
|
||||
(GObject *) wp_node_new_from_factory (self->local_core,
|
||||
(WpObject *) wp_node_new_from_factory (self->local_core,
|
||||
node_data->n.factory, wp_properties_ref (node_data->n.props));
|
||||
if (!node) {
|
||||
wp_warning_object (self, "failed to create node");
|
||||
@@ -68,14 +68,8 @@ wp_config_static_objects_context_create_node (WpConfigStaticObjectsContext *self
|
||||
}
|
||||
|
||||
/* export */
|
||||
if (WP_IS_IMPL_NODE (node)) {
|
||||
wp_impl_node_export (WP_IMPL_NODE (node));
|
||||
g_ptr_array_add (self->static_objects, g_object_ref (node));
|
||||
g_signal_emit (self, signals[SIGNAL_OBJECT_CREATED], 0, node);
|
||||
} else {
|
||||
wp_object_activate (WP_OBJECT (node), WP_PIPEWIRE_OBJECT_FEATURES_MINIMAL,
|
||||
NULL, on_object_created, self);
|
||||
}
|
||||
wp_object_activate (node, WP_PIPEWIRE_OBJECT_FEATURES_MINIMAL,
|
||||
NULL, on_object_created, self);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user