diff options
author | Richard Boulton <richard@tartarus.org> | 2001-04-22 12:30:14 +0000 |
---|---|---|
committer | Richard Boulton <richard@tartarus.org> | 2001-04-22 12:30:14 +0000 |
commit | 610e9e8227a28c1f18687685e6aab8ba5097983d (patch) | |
tree | 0ce535e1b2c4a461ba3c8f556139097dace979eb /plugins/elements/gstelements.c | |
parent | faf4bde938ef8225a935e2e7fc7a6e1e39d857cd (diff) |
Merged from BRANCH-PLUGINVER1PLUGINVER1-20010422
Original commit message from CVS:
Merged from BRANCH-PLUGINVER1
Diffstat (limited to 'plugins/elements/gstelements.c')
-rw-r--r-- | plugins/elements/gstelements.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/plugins/elements/gstelements.c b/plugins/elements/gstelements.c index 2b5dbf61b8..afd0862126 100644 --- a/plugins/elements/gstelements.c +++ b/plugins/elements/gstelements.c @@ -67,15 +67,12 @@ static struct _elements_entry _elements[] = { { NULL, 0 }, }; -GstPlugin *plugin_init (GModule *module) +static gboolean +plugin_init (GModule *module, GstPlugin *plugin) { - GstPlugin *plugin; GstElementFactory *factory; gint i = 0; - plugin = gst_plugin_new("gstelements"); - g_return_val_if_fail(plugin != NULL,NULL); - gst_plugin_set_longname (plugin, "Standard GST Elements"); while (_elements[i].name) { @@ -94,5 +91,13 @@ GstPlugin *plugin_init (GModule *module) // INFO (GST_INFO_PLUGIN_LOAD,"gstelements: loaded %d standard elements", i); - return plugin; + return TRUE; } + +GstPluginDesc plugin_desc = { + GST_VERSION_MAJOR, + GST_VERSION_MINOR, + "gstelements", + plugin_init +}; + |