summaryrefslogtreecommitdiff
path: root/gst/gsttypefind.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2005-09-18 06:59:25 +0000
committerDavid Schleef <ds@schleef.org>2005-09-18 06:59:25 +0000
commitcb798ac570e4a4f86001d5d26af550eb09f4c329 (patch)
treea8391cb1600dcf4deeb6ce811ff16cd1757612ea /gst/gsttypefind.c
parent687441277937689ccb2bbcd7520428b62754a5ea (diff)
check/Makefile.am: Fix environment variables.
Original commit message from CVS: * check/Makefile.am: Fix environment variables. * check/gst/gstplugin.c: Fix for API changes. * tools/gst-inspect.c: Fix for API changes. * tools/gst-xmlinspect.c: Fix for API changes. * gst/gstelementfactory.c: * gst/gstplugin.c: * gst/gstplugin.h: * gst/gstpluginfeature.c: * gst/gstpluginfeature.h: * gst/gstregistry.c: * gst/gstregistry.h: * gst/gstregistryxml.c: * gst/gsttypefind.c: * gst/gsttypefindfactory.c: * gst/indexers/gstfileindex.c: * gst/indexers/gstmemindex.c: * gst/schedulers/Makefile.am: Change registry to keep track of both plugins and features, removing the feature tracking from plugins themselves.
Diffstat (limited to 'gst/gsttypefind.c')
-rw-r--r--gst/gsttypefind.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/gsttypefind.c b/gst/gsttypefind.c
index 87cd74dd4..b59591e1c 100644
--- a/gst/gsttypefind.c
+++ b/gst/gsttypefind.c
@@ -67,7 +67,6 @@ gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
GST_DEBUG_OBJECT (factory, "using new typefind factory for %s", name);
g_assert (GST_IS_TYPE_FIND_FACTORY (factory));
gst_plugin_feature_set_name (GST_PLUGIN_FEATURE (factory), name);
- gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
gst_plugin_feature_set_rank (GST_PLUGIN_FEATURE (factory), rank);
if (factory->extensions)
@@ -77,6 +76,11 @@ gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
gst_caps_replace (&factory->caps, (GstCaps *) possible_caps);
factory->function = func;
factory->user_data = data;
+ GST_PLUGIN_FEATURE (factory)->plugin_name = g_strdup (plugin->desc.name);
+ GST_PLUGIN_FEATURE (factory)->loaded = TRUE;
+
+ gst_registry_add_feature (gst_registry_get_default (),
+ GST_PLUGIN_FEATURE (factory));
return TRUE;
}