pluginfeature: add gst_plugin_feature_get_plugin_name()

API: gst_plugin_feature_get_plugin_name()

https://bugzilla.gnome.org/show_bug.cgi?id=571832
This commit is contained in:
Tim-Philipp Müller 2012-10-28 15:53:19 +00:00
parent 3d5f6202af
commit bab8ed6b8a
4 changed files with 25 additions and 0 deletions

View file

@ -2087,6 +2087,7 @@ gst_plugin_feature_set_name
gst_plugin_feature_get_rank
gst_plugin_feature_get_name
gst_plugin_feature_get_plugin
gst_plugin_feature_get_plugin_name
gst_plugin_feature_load
gst_plugin_feature_list_copy
gst_plugin_feature_list_free

View file

@ -199,6 +199,28 @@ gst_plugin_feature_get_plugin (GstPluginFeature * feature)
return (GstPlugin *) gst_object_ref (feature->plugin);
}
/**
* gst_plugin_feature_get_plugin_name:
* @feature: a feature
*
* Get the name of the plugin that provides this feature.
*
* Returns: the name of the plugin that provides this feature, or %NULL if
* the feature is not associated with a plugin.
*
* Since: 1.2.0
*/
const gchar *
gst_plugin_feature_get_plugin_name (GstPluginFeature * feature)
{
g_return_val_if_fail (GST_IS_PLUGIN_FEATURE (feature), NULL);
if (feature->plugin == NULL)
return NULL;
return gst_plugin_get_name (feature->plugin);
}
/**
* gst_plugin_feature_list_free:
* @list: (transfer full) (element-type Gst.PluginFeature): list

View file

@ -113,6 +113,7 @@ void gst_plugin_feature_set_rank (GstPluginFeature *featu
guint gst_plugin_feature_get_rank (GstPluginFeature *feature);
GstPlugin * gst_plugin_feature_get_plugin (GstPluginFeature *feature);
const gchar * gst_plugin_feature_get_plugin_name (GstPluginFeature *feature);
void gst_plugin_feature_list_free (GList *list);
GList *gst_plugin_feature_list_copy (GList *list) G_GNUC_MALLOC;

View file

@ -784,6 +784,7 @@ EXPORTS
gst_plugin_error_quark
gst_plugin_feature_check_version
gst_plugin_feature_get_plugin
gst_plugin_feature_get_plugin_name
gst_plugin_feature_get_rank
gst_plugin_feature_get_type
gst_plugin_feature_list_copy