playbin: use ascending order for name based sorting of pluginfeatures.
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Mon, 15 Apr 2013 09:37:07 +0000 (12:37 +0300)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 15 Apr 2013 10:05:22 +0000 (12:05 +0200)
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).

gst/playback/gstplaybin2.c

index dbd037d..d213614 100644 (file)
@@ -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;
 }