summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2013-04-15 12:20:09 +0300
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-15 12:05:16 +0200
commitf07eb23728bcac09ca16a666a09058ab2c38bd4e (patch)
tree57c8893e8924c54d1628db74240eab5e6bf7ad7c /gst
parent98f41f1c390e22269f3042adda29d3d345699016 (diff)
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).
Diffstat (limited to 'gst')
-rw-r--r--gst/playback/gstdecodebin2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c
index 537cdf15b..af5d8b20e 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;
}