diff options
author | David Schleef <ds@schleef.org> | 2003-08-19 07:31:24 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-08-19 07:31:24 +0000 |
commit | c4d186ec85b141bc1bcbbe2d8e03fbde8310a9fc (patch) | |
tree | 219cf2302b68fa8d7a7e3037cb82011756827df6 /gst/gstpluginfeature.c | |
parent | b5f3c4eaf9616d2da551a4b4f6f06c6d4dc1ee83 (diff) |
Er, plugins actually use gst_element_factory_set_rank(). Add a define to call gst_plugin_feature_set_rank().
Original commit message from CVS:
Er, plugins actually use gst_element_factory_set_rank(). Add a
define to call gst_plugin_feature_set_rank().
Diffstat (limited to 'gst/gstpluginfeature.c')
-rw-r--r-- | gst/gstpluginfeature.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gst/gstpluginfeature.c b/gst/gstpluginfeature.c index dbd680d0e0..abc0473020 100644 --- a/gst/gstpluginfeature.c +++ b/gst/gstpluginfeature.c @@ -136,3 +136,21 @@ gst_plugin_feature_type_name_filter (GstPluginFeature *feature, return ((data->type == 0 || data->type == G_OBJECT_TYPE (feature)) && (data->name == NULL || !strcmp (data->name, GST_PLUGIN_FEATURE_NAME (feature)))); } + +/** + * gst_plugin_feature_set_rank: + * @feature: feature to rank + * @rank: rank value - higher number means more priority rank + * + * Specifies a rank for a plugin feature, so that autoplugging uses + * the most appropriate feature. + */ +void +gst_plugin_feature_set_rank (GstPluginFeature *feature, guint16 rank) +{ + g_return_if_fail (feature != NULL); + g_return_if_fail (GST_IS_PLUGIN_FEATURE (feature)); + + feature->rank = rank; +} + |