validate: Make sure that the latest action type registration is kept

Avoiding to change the behaviour!
This commit is contained in:
Thibault Saunier 2015-02-10 13:22:34 +01:00
parent e80a7df4d3
commit 45f3f3d772

View 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 {