element: Enforce that elements created by gst_element_factory_create/make() are floating
[platform/upstream/gstreamer.git] / gst / gstdynamictypefactory.c
index e6b304e..cb388a5 100644 (file)
@@ -21,6 +21,7 @@
 
 /**
  * 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
@@ -123,9 +123,7 @@ gst_dynamic_type_factory_create (GstRegistry * registry,
 {
   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);