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:
Tim-Philipp Müller 2011-04-06 11:30:18 +01:00
parent bd1c400114
commit da5d6712a2

View file

@ -1116,6 +1116,16 @@ GST_START_TEST (test_many_bins)
} }
last_bin = bin; 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)); fail_unless (gst_element_link (last_bin, sink));