oclass->padtemplates = g_list_concat (oclass->padtemplates, factory->padtemplates);
oclass->numpadtemplates += factory->numpadtemplates;
}
-
- gst_object_set_name (GST_OBJECT (element),name);
+
+ gst_object_set_name (GST_OBJECT (element), name);
return element;
}
GST_INFO (GST_CAT_ELEMENT_FACTORY,"no such elementfactory \"%s\"!",factoryname);
return NULL;
}
- element = gst_element_factory_create(factory,name);
+ element = gst_element_factory_create (factory, name);
if (element == NULL) {
GST_INFO (GST_CAT_ELEMENT_FACTORY,"couldn't create instance of elementfactory \"%s\"!",factoryname);
return NULL;
if (!name_is_valid (name_template, presence))
return NULL;
- new = g_object_new(gst_pad_template_get_type () ,NULL);
+ new = g_object_new (gst_pad_template_get_type (),
+ "name", name_template,
+ NULL);
GST_PAD_TEMPLATE_NAME_TEMPLATE (new) = name_template;
GST_PAD_TEMPLATE_DIRECTION (new) = direction;