mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-16 13:26:36 +00:00
validate: Allow connecting reporters by name for overrides
Using the element that owns the pad on which we are connecting was not making sense.
This commit is contained in:
parent
052d875999
commit
288258c366
1 changed files with 3 additions and 4 deletions
|
@ -30,6 +30,7 @@
|
||||||
#include <gmodule.h>
|
#include <gmodule.h>
|
||||||
|
|
||||||
#include "gst-validate-report.h"
|
#include "gst-validate-report.h"
|
||||||
|
#include "gst-validate-reporter.h"
|
||||||
#include "gst-validate-utils.h"
|
#include "gst-validate-utils.h"
|
||||||
#include "gst-validate-internal.h"
|
#include "gst-validate-internal.h"
|
||||||
#include "gst-validate-monitor.h"
|
#include "gst-validate-monitor.h"
|
||||||
|
@ -175,9 +176,9 @@ static void
|
||||||
{
|
{
|
||||||
GstValidateOverrideRegistryNameEntry *entry;
|
GstValidateOverrideRegistryNameEntry *entry;
|
||||||
GList *iter;
|
GList *iter;
|
||||||
gchar *name;
|
const gchar *name;
|
||||||
|
|
||||||
name = gst_validate_monitor_get_element_name (monitor);
|
name = gst_validate_reporter_get_name (GST_VALIDATE_REPORTER (monitor));
|
||||||
for (iter = registry->name_overrides.head; iter; iter = g_list_next (iter)) {
|
for (iter = registry->name_overrides.head; iter; iter = g_list_next (iter)) {
|
||||||
entry = iter->data;
|
entry = iter->data;
|
||||||
if (g_regex_match_simple (entry->name, name, 0, 0)) {
|
if (g_regex_match_simple (entry->name, name, 0, 0)) {
|
||||||
|
@ -186,8 +187,6 @@ static void
|
||||||
gst_validate_monitor_attach_override (monitor, entry->override);
|
gst_validate_monitor_attach_override (monitor, entry->override);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue