validate: Make sure that the latest action type registration is kept
authorThibault Saunier <tsaunier@gnome.org>
Tue, 10 Feb 2015 12:22:34 +0000 (13:22 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Sat, 14 Feb 2015 15:32:12 +0000 (16:32 +0100)
Avoiding to change the behaviour!

validate/gst/validate/gst-validate-scenario.c

index c2d79a2..b5c1958 100644 (file)
@@ -2376,7 +2376,7 @@ gst_validate_register_action_type_dynamic (GstPlugin * plugin,
   type->rank = rank;
 
   if ((tmptype = _find_action_type (type_name))) {
-    if (tmptype->rank < rank) {
+    if (tmptype->rank <= rank) {
       action_types = g_list_remove (action_types, tmptype);
       gst_mini_object_unref (GST_MINI_OBJECT (tmptype));
     } else {