return TRUE;
}
- factory =
- GST_ELEMENT_FACTORY_CAST (g_object_newv (GST_TYPE_ELEMENT_FACTORY, 0,
- NULL));
+ factory = g_object_new (GST_TYPE_ELEMENT_FACTORY, NULL);
gst_plugin_feature_set_name (GST_PLUGIN_FEATURE_CAST (factory), name);
GST_LOG_OBJECT (factory, "Created new elementfactory for type %s",
g_type_name (type));
* also set name as early as we can
*/
if (name)
- element =
- GST_ELEMENT_CAST (g_object_new (factory->type, "name", name, NULL));
+ element = g_object_new (factory->type, "name", name, NULL);
else
- element = GST_ELEMENT_CAST (g_object_newv (factory->type, 0, NULL));
+ element = g_object_new (factory->type, NULL);
if (G_UNLIKELY (element == NULL))
goto no_element;
/* ERRORS */
no_factory:
{
- GST_INFO ("no such element factory \"%s\"!", factoryname);
+ GST_WARNING ("no such element factory \"%s\"!", factoryname);
return NULL;
}
create_failed: