mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
checks: add some queues to test_many_bins unit test
To limit the number of calls in a row per thread.
This commit is contained in:
parent
bd1c400114
commit
da5d6712a2
1 changed files with 10 additions and 0 deletions
|
@ -1116,6 +1116,16 @@ GST_START_TEST (test_many_bins)
|
|||
}
|
||||
|
||||
last_bin = bin;
|
||||
|
||||
/* insert some queues to limit the number of function calls in a row */
|
||||
if ((i % 100) == 0) {
|
||||
GstElement *q = gst_element_factory_make ("queue", NULL);
|
||||
|
||||
GST_LOG ("bin #%d, inserting queue", i);
|
||||
gst_bin_add (GST_BIN (pipeline), q);
|
||||
fail_unless (gst_element_link (last_bin, q));
|
||||
last_bin = q;
|
||||
}
|
||||
}
|
||||
|
||||
fail_unless (gst_element_link (last_bin, sink));
|
||||
|
|
Loading…
Reference in a new issue