- GstElementFactory *factory;
-
- factory = gst_elementfactory_new("median",GST_TYPE_MEDIAN,
- &median_details);
- g_return_val_if_fail(factory != NULL, FALSE);
-
- gst_elementfactory_add_padtemplate (factory, GST_PADTEMPLATE_GET (median_sink_factory));
- gst_elementfactory_add_padtemplate (factory, GST_PADTEMPLATE_GET (median_src_factory));
-
- gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
-
- return TRUE;
+ return gst_element_register (plugin, "median",
+ GST_RANK_NONE, GST_TYPE_MEDIAN);