summaryrefslogtreecommitdiff
path: root/gst/gstregistry.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-04-29 18:35:11 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-04-29 18:35:11 +0100
commit4889fd6b6f07fa0049c779bed343cab9ae417f55 (patch)
tree917760f76b633188bc12f68a9565ec705e3384a7 /gst/gstregistry.c
parentc7eca5ca152649ca3d8bcb66b525d182698138ad (diff)
plugin: remove gst_plugin_name_filter
It's only used internally, most other users will likely want to use gst_registry_find_plugin() directly instead (and if not, they can easily walk the list and doing the strcmp themselves).
Diffstat (limited to 'gst/gstregistry.c')
-rw-r--r--gst/gstregistry.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gst/gstregistry.c b/gst/gstregistry.c
index 5e4d7bca55..0575709f54 100644
--- a/gst/gstregistry.c
+++ b/gst/gstregistry.c
@@ -816,6 +816,12 @@ gst_registry_feature_filter (GstRegistry * registry,
return list;
}
+static gboolean
+gst_registry_plugin_name_filter (GstPlugin * plugin, const gchar * name)
+{
+ return (plugin->desc.name && !strcmp (plugin->desc.name, name));
+}
+
/**
* gst_registry_find_plugin:
* @registry: the registry to search
@@ -839,7 +845,7 @@ gst_registry_find_plugin (GstRegistry * registry, const gchar * name)
g_return_val_if_fail (name != NULL, NULL);
walk = gst_registry_plugin_filter (registry,
- (GstPluginFilter) gst_plugin_name_filter, TRUE, (gpointer) name);
+ (GstPluginFilter) gst_registry_plugin_name_filter, TRUE, (gpointer) name);
if (walk) {
result = GST_PLUGIN_CAST (walk->data);