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
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
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);
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
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);
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