diff options
Diffstat (limited to 'gst/autoplug/gststaticautoplug.c')
-rw-r--r-- | gst/autoplug/gststaticautoplug.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/gst/autoplug/gststaticautoplug.c b/gst/autoplug/gststaticautoplug.c index ca06fe9398..11403a069d 100644 --- a/gst/autoplug/gststaticautoplug.c +++ b/gst/autoplug/gststaticautoplug.c @@ -80,15 +80,11 @@ gst_static_autoplug_class_init(GstStaticAutoplugClass *klass) static void gst_static_autoplug_init(GstStaticAutoplug *autoplug) { } -GstPlugin* -plugin_init (GModule *module) +static gboolean +plugin_init (GModule *module, GstPlugin *plugin) { - GstPlugin *plugin; GstAutoplugFactory *factory; - plugin = gst_plugin_new("gststaticautoplug"); - g_return_val_if_fail(plugin != NULL,NULL); - gst_plugin_set_longname (plugin, "A static autoplugger"); factory = gst_autoplugfactory_new ("static", @@ -98,9 +94,16 @@ plugin_init (GModule *module) if (factory != NULL) { gst_plugin_add_autoplugger (plugin, factory); } - return plugin; + return TRUE; } +GstPluginDesc plugin_desc = { + GST_VERSION_MAJOR, + GST_VERSION_MINOR, + "gststaticautoplug", + plugin_init +}; + static gboolean gst_autoplug_can_match (GstElementFactory *src, GstElementFactory *dest) { |