check: fix jitterbuffer check
authorWim Taymans <wtaymans@redhat.com>
Mon, 25 Nov 2013 16:38:06 +0000 (17:38 +0100)
committerWim Taymans <wtaymans@redhat.com>
Mon, 25 Nov 2013 16:39:52 +0000 (17:39 +0100)
Don't advance the clock to 240ms too early.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=710013

tests/check/elements/rtpjitterbuffer.c

index 70f59f0..edda166 100644 (file)
@@ -1250,6 +1250,8 @@ GST_START_TEST (test_rtx_packet_delay)
   while (g_async_queue_length (data.buf_queue) < 1) {
     if (gst_test_clock_peek_next_pending_id (GST_TEST_CLOCK (data.clock), &id)) {
       GstClockTime t = gst_clock_id_get_time (id);
+      if (t >= 240 * GST_MSECOND)
+        break;
       if (t > gst_clock_get_time (data.clock)) {
         gst_test_clock_set_time (GST_TEST_CLOCK (data.clock), t);
       }