mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
validate: Ensure a meta structure is found in test files
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/189>
This commit is contained in:
parent
619efa56a7
commit
da390689c9
1 changed files with 4 additions and 0 deletions
|
@ -537,6 +537,10 @@ gst_validate_setup_test_file (const gchar * testfile, gboolean use_fakesinks)
|
|||
if (gst_structure_has_name (testfile_structs->data, "set-globals")) {
|
||||
GstStructure *globals = testfile_structs->data;
|
||||
gst_validate_set_globals (globals);
|
||||
if (!testfile_structs->next)
|
||||
gst_validate_abort
|
||||
("Only one `set-globals` structure in %s, nothing to test here.",
|
||||
testfile);
|
||||
res = testfile_structs->next->data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue