mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
flvmux: Use loop test to prevent timeout on slow machines
Partially fixes bug #597739.
This commit is contained in:
parent
88884cfddb
commit
2543d9c28c
1 changed files with 3 additions and 8 deletions
|
@ -139,14 +139,9 @@ mux_pcm_audio (guint num_buffers, guint repeat)
|
||||||
|
|
||||||
GST_START_TEST (test_index_writing)
|
GST_START_TEST (test_index_writing)
|
||||||
{
|
{
|
||||||
guint bufs;
|
|
||||||
|
|
||||||
/* note: there's a magic 128 value in flvmux when doing index writing */
|
/* note: there's a magic 128 value in flvmux when doing index writing */
|
||||||
for (bufs = 1; bufs < 500; bufs += 33) {
|
if ((__i__ % 33) == 1)
|
||||||
mux_pcm_audio (bufs, 2);
|
mux_pcm_audio (__i__, 2);
|
||||||
}
|
|
||||||
|
|
||||||
gst_task_cleanup_all ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
@ -158,7 +153,7 @@ flvmux_suite (void)
|
||||||
TCase *tc_chain = tcase_create ("general");
|
TCase *tc_chain = tcase_create ("general");
|
||||||
|
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
tcase_add_test (tc_chain, test_index_writing);
|
tcase_add_loop_test (tc_chain, test_index_writing, 1, 499);
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue