X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstdynamictypefactory.c;h=cb388a5dfdae0ec7bd3cf88dffe490756d250524;hb=53bf06c08814ff9ac3968d47daf11a395cf26a01;hp=e6b304eea7b84fb511ea859acf896683b0f2cf5f;hpb=e1dc60524e31a5c52aff7fbb9b67e62b29c0ac66;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstdynamictypefactory.c b/gst/gstdynamictypefactory.c index e6b304e..cb388a5 100644 --- a/gst/gstdynamictypefactory.c +++ b/gst/gstdynamictypefactory.c @@ -21,6 +21,7 @@ /** * SECTION:gstdynamictypefactory + * @title: GstDynamicTypeFactory * @short_description: Represents a registered dynamically loadable GType * @see_also: #GstPlugin, #GstPluginFeature. * @@ -33,17 +34,16 @@ * done, the type is stored in the registry, and ready as soon as the * registry is loaded. * - * - * Registering a type for dynamic loading - * + * ## Registering a type for dynamic loading + * + * |[ * * static gboolean * plugin_init (GstPlugin * plugin) * { * return gst_dynamic_type_register (plugin, GST_TYPE_CUSTOM_CAPS_FIELD); * } - * - * + * ]| */ #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);