summaryrefslogtreecommitdiff
path: root/gst/gstpluginfeature.c
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2013-04-13 19:43:10 +0300
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-15 09:24:08 +0200
commit899bbf310b5fb63f3aad96fde9fce0308039a386 (patch)
tree8404c56ff6632feb216410730a1cfc8f44960e9e /gst/gstpluginfeature.c
parent17991cf212a51d6c936385790ed9db179d366550 (diff)
pluginfeature: Fix the GstPluginFeature name comparison.
The gst_plugin_feature_rank_compare_func() should return negative value, if the rank of both PluginFeatures are equal and the name of first PluginFeature comes before the second one. https://bugzilla.gnome.org/show_bug.cgi?id=697990
Diffstat (limited to 'gst/gstpluginfeature.c')
-rw-r--r--gst/gstpluginfeature.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/gstpluginfeature.c b/gst/gstpluginfeature.c
index a602b530a6..6dd5e56d45 100644
--- a/gst/gstpluginfeature.c
+++ b/gst/gstpluginfeature.c
@@ -382,7 +382,7 @@ gst_plugin_feature_check_version (GstPluginFeature * feature,
* Returns: negative value if the rank of p1 > the rank of p2 or the ranks are
* equal but the name of p1 comes before the name of p2; zero if the rank
* and names are equal; positive value if the rank of p1 < the rank of p2 or the
- * ranks are equal but the name of p2 comes after the name of p1
+ * ranks are equal but the name of p2 comes before the name of p1
*/
gint
gst_plugin_feature_rank_compare_func (gconstpointer p1, gconstpointer p2)
@@ -397,7 +397,7 @@ gst_plugin_feature_rank_compare_func (gconstpointer p1, gconstpointer p2)
if (diff != 0)
return diff;
- diff = strcmp (GST_OBJECT_NAME (f2), GST_OBJECT_NAME (f1));
+ diff = strcmp (GST_OBJECT_NAME (f1), GST_OBJECT_NAME (f2));
return diff;
}