mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-15 20:58:57 +00:00
tests: element: Don't run too many loop
g_thread_yield() doesn't ensure thread switching actually. It would result to adding so many pads. Depending on system, timeout might happen then. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/625>
This commit is contained in:
parent
f44312ae5d
commit
f120ad0012
1 changed files with 1 additions and 1 deletions
|
@ -870,7 +870,7 @@ GST_START_TEST (test_foreach_pad)
|
|||
MAIN_START_THREAD_FUNCTION (0, thread_add_remove_pads, e);
|
||||
MAIN_SYNCHRONIZE ();
|
||||
|
||||
for (i = 0; i < 10000; ++i) {
|
||||
for (i = 0; i < 1000; ++i) {
|
||||
gchar num[32];
|
||||
|
||||
g_snprintf (num, 32, "foreach-test-%u", i);
|
||||
|
|
Loading…
Reference in a new issue