mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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>
This commit is contained in:
parent
6419f1f881
commit
b4c9025db2
1 changed files with 4 additions and 1 deletions
|
@ -60,6 +60,7 @@ static GList *all_configs = NULL;
|
||||||
static gboolean got_configs = FALSE;
|
static gboolean got_configs = FALSE;
|
||||||
|
|
||||||
static GList *core_config = NULL;
|
static GList *core_config = NULL;
|
||||||
|
static gboolean testfile_used = FALSE;
|
||||||
static GList *testfile_structs = NULL;
|
static GList *testfile_structs = NULL;
|
||||||
static gchar *global_testfile = NULL;
|
static gchar *global_testfile = NULL;
|
||||||
static gboolean validate_initialized = FALSE;
|
static gboolean validate_initialized = FALSE;
|
||||||
|
@ -513,7 +514,7 @@ gst_validate_get_test_file_scenario (GList ** structs,
|
||||||
GList *res = NULL, *tmp;
|
GList *res = NULL, *tmp;
|
||||||
GstStructure *meta = get_test_file_meta ();
|
GstStructure *meta = get_test_file_meta ();
|
||||||
|
|
||||||
if (!testfile_structs)
|
if (!testfile_structs || testfile_used)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (meta && gst_structure_has_field (meta, "scenario")) {
|
if (meta && gst_structure_has_field (meta, "scenario")) {
|
||||||
|
@ -537,10 +538,12 @@ gst_validate_get_test_file_scenario (GList ** structs,
|
||||||
|
|
||||||
*structs = res;
|
*structs = res;
|
||||||
*original_name = global_testfile;
|
*original_name = global_testfile;
|
||||||
|
testfile_used = TRUE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Only the first monitor pipeline will be used */
|
||||||
GstStructure *
|
GstStructure *
|
||||||
gst_validate_setup_test_file (const gchar * testfile, gboolean use_fakesinks)
|
gst_validate_setup_test_file (const gchar * testfile, gboolean use_fakesinks)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue