validate: fix bug monitor subscriptions on pads by name
authorAlicia Boya García <ntrrgc@gmail.com>
Mon, 29 Oct 2018 15:37:11 +0000 (15:37 +0000)
committerAlicia Boya García <ntrrgc@gmail.com>
Wed, 14 Nov 2018 16:10:28 +0000 (17:10 +0100)
gst_validate_override_register_by_name() was not working when using a
pad name because by the time gst_validate_pad_monitor_do_setup()
was called to set the name of the monitor it was too late for overrides
to have any effect.

Patch written by Thibault.

validate/gst/validate/gst-validate-monitor.c

index ee8c7be..97b683f 100644 (file)
@@ -210,8 +210,8 @@ gst_validate_monitor_constructor (GType type, guint n_construct_params,
     }
   }
 
-  gst_validate_override_registry_attach_overrides (monitor);
   gst_validate_monitor_setup (monitor);
+  gst_validate_override_registry_attach_overrides (monitor);
 
   target = gst_validate_monitor_get_target (monitor);
   g_object_set_data ((GObject *) target, "validate-monitor", monitor);