summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2013-04-15 12:37:07 +0300
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-15 12:05:22 +0200
commit9b33c75cd438bc188d7e5be1b85a0b029ef99483 (patch)
tree64a5aefa5f6e64dfb703dc97352425bea71ac643
parentf07eb23728bcac09ca16a666a09058ab2c38bd4e (diff)
playbin: use ascending order for name based sorting of pluginfeatures.
The compare_factories_func() should return negative value if the rank of both PluginFeatures are equal and the name of first PluginFeature comes before the second one (== ascending order).
-rw-r--r--gst/playback/gstplaybin2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c
index dbd037dd6..d21361440 100644
--- a/gst/playback/gstplaybin2.c
+++ b/gst/playback/gstplaybin2.c
@@ -1329,7 +1329,7 @@ compare_factories_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;
}