diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2020-12-15 18:18:29 -0300 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2020-12-16 22:00:37 -0300 |
commit | b4c9025db2737bf4244697658756aa53eaed1665 (patch) | |
tree | cdc0ef73854e03aba47bd952aac70449c233c137 | |
parent | 6419f1f881ce4f16c98f900c16d148c995377890 (diff) |
validate: Only consider the first pipeline when using test files
And port the deeply nested tests we have
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/233>
-rw-r--r-- | validate/gst/validate/validate.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/validate/gst/validate/validate.c b/validate/gst/validate/validate.c index 1c26274..875fbcb 100644 --- a/validate/gst/validate/validate.c +++ b/validate/gst/validate/validate.c @@ -60,6 +60,7 @@ static GList *all_configs = NULL; static gboolean got_configs = FALSE; static GList *core_config = NULL; +static gboolean testfile_used = FALSE; static GList *testfile_structs = NULL; static gchar *global_testfile = NULL; static gboolean validate_initialized = FALSE; @@ -513,7 +514,7 @@ gst_validate_get_test_file_scenario (GList ** structs, GList *res = NULL, *tmp; GstStructure *meta = get_test_file_meta (); - if (!testfile_structs) + if (!testfile_structs || testfile_used) return FALSE; if (meta && gst_structure_has_field (meta, "scenario")) { @@ -537,10 +538,12 @@ gst_validate_get_test_file_scenario (GList ** structs, *structs = res; *original_name = global_testfile; + testfile_used = TRUE; return TRUE; } +/* Only the first monitor pipeline will be used */ GstStructure * gst_validate_setup_test_file (const gchar * testfile, gboolean use_fakesinks) { |