/**
* SECTION:gstdynamictypefactory
+ * @title: GstDynamicTypeFactory
* @short_description: Represents a registered dynamically loadable GType
* @see_also: #GstPlugin, #GstPluginFeature.
*
* done, the type is stored in the registry, and ready as soon as the
* registry is loaded.
*
- * <example>
- * <title>Registering a type for dynamic loading</title>
- * <programlisting language="c">
+ * ## Registering a type for dynamic loading
+ *
+ * |[<!-- language="C" -->
*
* static gboolean
* plugin_init (GstPlugin * plugin)
* {
* return gst_dynamic_type_register (plugin, GST_TYPE_CUSTOM_CAPS_FIELD);
* }
- * </programlisting>
- * </example>
+ * ]|
*/
#ifdef HAVE_CONFIG_H
{
GstDynamicTypeFactory *factory;
- factory =
- GST_DYNAMIC_TYPE_FACTORY_CAST (g_object_newv
- (GST_TYPE_DYNAMIC_TYPE_FACTORY, 0, NULL));
+ factory = g_object_new (GST_TYPE_DYNAMIC_TYPE_FACTORY, NULL);
gst_plugin_feature_set_name (GST_PLUGIN_FEATURE_CAST (factory), name);
GST_LOG_OBJECT (factory, "Created new dynamictypefactory for type %s", name);