From f07eb23728bcac09ca16a666a09058ab2c38bd4e Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Mon, 15 Apr 2013 12:20:09 +0300 Subject: [PATCH] decodebin: use ascending order for name based sorting of pluginfeatures. The _decode_bin_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). --- gst/playback/gstdecodebin2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 537cdf15b7..af5d8b20e7 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -1015,7 +1015,7 @@ _decode_bin_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; }