From: Sebastian Dröge Date: Thu, 18 Aug 2016 06:57:51 +0000 (+0300) Subject: rtpjitterbuffer: Fix unit test by disabling adaptive misorder/dropout calculations X-Git-Tag: 1.19.3~509^2~2602 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1eefe23deb5407c2fd4fb9a8e4550a483cf4c6e;p=platform%2Fupstream%2Fgstreamer.git rtpjitterbuffer: Fix unit test by disabling adaptive misorder/dropout calculations Need to set max-misorder-time and max-dropout-time to 0 so the jitterbuffer does not base them on packet rate calculations. If it does, out gap is big enough to be considered a new stream and we wait for a few consecutive packets just to be sure https://bugzilla.gnome.org/show_bug.cgi?id=751311 --- diff --git a/tests/check/elements/rtpjitterbuffer.c b/tests/check/elements/rtpjitterbuffer.c index 3b519e0..10810fa 100644 --- a/tests/check/elements/rtpjitterbuffer.c +++ b/tests/check/elements/rtpjitterbuffer.c @@ -532,7 +532,13 @@ GST_START_TEST (test_only_one_lost_event_on_large_gaps) gst_harness_set_src_caps (h, generate_caps ()); testclock = gst_harness_get_testclock (h); - g_object_set (h->element, "do-lost", TRUE, "latency", jb_latency_ms, NULL); + /* Need to set max-misorder-time and max-dropout-time to 0 so the + * jitterbuffer does not base them on packet rate calculations. + * If it does, out gap is big enough to be considered a new stream and + * we wait for a few consecutive packets just to be sure + */ + g_object_set (h->element, "do-lost", TRUE, "latency", jb_latency_ms, + "max-misorder-time", 0, "max-dropout-time", 0, NULL); /* push the first buffer in */ fail_unless_equals_int (GST_FLOW_OK,