From: Tim-Philipp Müller Date: Sun, 29 Apr 2012 17:35:11 +0000 (+0100) Subject: plugin: remove gst_plugin_name_filter X-Git-Tag: RELEASE-0.11.91~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4889fd6b6f07fa0049c779bed343cab9ae417f55;p=platform%2Fupstream%2Fgstreamer.git 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). --- diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index c0480b7..8e7ebfb 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -1998,7 +1998,6 @@ gst_plugin_get_release_date_string gst_plugin_is_loaded gst_plugin_get_cache_data gst_plugin_set_cache_data -gst_plugin_name_filter gst_plugin_load_file gst_plugin_load gst_plugin_load_by_name diff --git a/gst/gstplugin.c b/gst/gstplugin.c index 7fa2582..3f7c314 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -1159,25 +1159,7 @@ gst_plugin_list_feature_filter (GList * list, return data.result; } -#endif - -/** - * gst_plugin_name_filter: - * @plugin: the plugin to check - * @name: the name of the plugin - * - * A standard filter that returns TRUE when the plugin is of the - * given name. - * - * Returns: TRUE if the plugin is of the given name. - */ -gboolean -gst_plugin_name_filter (GstPlugin * plugin, const gchar * name) -{ - return (plugin->desc.name && !strcmp (plugin->desc.name, name)); -} -#if 0 /** * gst_plugin_find_feature: * @plugin: plugin to get the feature from diff --git a/gst/gstplugin.h b/gst/gstplugin.h index 90d4836..fcf9a2f 100644 --- a/gst/gstplugin.h +++ b/gst/gstplugin.h @@ -298,8 +298,6 @@ void gst_plugin_set_cache_data (GstPlugin * plugin, GstStructure *cache_data); gboolean gst_plugin_is_loaded (GstPlugin *plugin); -gboolean gst_plugin_name_filter (GstPlugin *plugin, const gchar *name); - GstPlugin * gst_plugin_load_file (const gchar *filename, GError** error); GstPlugin * gst_plugin_load (GstPlugin *plugin); diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 5e4d7bc..0575709 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); diff --git a/win32/common/libgstreamer.def b/win32/common/libgstreamer.def index 9981e5b..351e502 100644 --- a/win32/common/libgstreamer.def +++ b/win32/common/libgstreamer.def @@ -773,7 +773,6 @@ EXPORTS gst_plugin_load gst_plugin_load_by_name gst_plugin_load_file - gst_plugin_name_filter gst_plugin_register_static gst_plugin_register_static_full gst_plugin_set_cache_data