diff options
author | David Schleef <ds@schleef.org> | 2005-09-16 03:46:14 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2005-09-16 03:46:14 +0000 |
commit | 02bde78085ad1836c6997f7affa030f616e2afe4 (patch) | |
tree | b69ed11ca0ac4b993959fdc36d9a0f3e3d9c5a63 /gst/gsttypefind.c | |
parent | 41cd7b46c6559bf805057f937c2e9a5592e124a0 (diff) | |
download | gstreamer-02bde78085ad1836c6997f7affa030f616e2afe4.tar.gz |
check/gst/gstplugin.c: More testing
Original commit message from CVS:
* check/gst/gstplugin.c: (register_check_elements),
(GST_START_TEST), (peek), (suggest), (gst_plugin_suite):
More testing
* gst/elements/gsttypefindelement.c: Fix refcounting.
* gst/gsttypefind.c:
* gst/gsttypefindfactory.c:
* gst/gsttypefindfactory.h:
Diffstat (limited to 'gst/gsttypefind.c')
-rw-r--r-- | gst/gsttypefind.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/gst/gsttypefind.c b/gst/gsttypefind.c index 9c7b46578a..87cd74dd4d 100644 --- a/gst/gsttypefind.c +++ b/gst/gsttypefind.c @@ -62,18 +62,12 @@ gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank, g_return_val_if_fail (func != NULL, FALSE); GST_INFO ("registering typefind function for %s", name); - factory = - GST_TYPE_FIND_FACTORY (gst_registry_find_feature (gst_registry_get_default - (), name, GST_TYPE_TYPE_FIND_FACTORY)); - if (!factory) { - factory = g_object_new (GST_TYPE_TYPE_FIND_FACTORY, NULL); - 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)); - } else { - GST_DEBUG_OBJECT (factory, "using old typefind factory for %s", name); - } + + factory = g_object_new (GST_TYPE_TYPE_FIND_FACTORY, NULL); + 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) |