Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHavard Graff <havard.graff@gmail.com>2019-06-06 10:41:13 +0300
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-06-20 22:45:33 +0300
commitcdba5952ed36d2c2be82c6ed5b8b436beb4c2874 (patch)
tree24f1178ec3ab2b64a64f3f0bb7e5024213f7edcd /tests
parent12e020189c2414bc605f54fea0b463f72e10a99f (diff)
rtpsession: make tests more stable
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/410>
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/rtpsession.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/check/elements/rtpsession.c b/tests/check/elements/rtpsession.c
index 357e80f52..5c3c48c81 100644
--- a/tests/check/elements/rtpsession.c
+++ b/tests/check/elements/rtpsession.c
@@ -427,6 +427,10 @@ GST_START_TEST (test_multiple_senders_roundrobin_rbs)
g_object_set (h->internal_session, "internal-ssrc", 0xDEADBEEF, NULL);
+ /* this is a hack to prevent the sources from timing out when cranking and
+ hence messing with RTCP-generation, making the test fail 1/1000 times */
+ g_object_set (h->session, "rtcp-min-interval", 20 * GST_SECOND, NULL);
+
for (i = 0; i < 2; i++) { /* cycles between RR reports */
for (j = 0; j < 5; j++) { /* packets per ssrc */
gint seq = (i * 5) + j;
@@ -633,6 +637,10 @@ GST_START_TEST (test_internal_sources_timeout)
g_object_get (h->internal_session, "internal-ssrc", &internal_ssrc, NULL);
fail_unless_equals_int (0xDEADBEEF, internal_ssrc);
+ /* this is a hack to prevent the sources from timing out when cranking and
+ hence messing with RTCP-generation, making the test fail 1/100 times */
+ g_object_set (h->session, "rtcp-min-interval", 20 * GST_SECOND, NULL);
+
for (i = 1; i < 4; i++) {
buf = generate_test_buffer (i, 0xBEEFDEAD);
res = session_harness_recv_rtp (h, buf);