summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHavard Graff <havard.graff@gmail.com>2020-03-19 23:17:21 +0100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-03-20 13:17:20 +0000
commita710bda1ab70573778165f32b65d59bdaccdc820 (patch)
tree38073e249d37c20050895a56a98cab3e5fd247c6 /tests
parentf1ff80ced0d14639beb3835970b62770e1eb74d1 (diff)
downloadgstreamer-plugins-good-a710bda1ab70573778165f32b65d59bdaccdc820.tar.gz
rtptimerqueue: remove ->num from the timer
This concept was only used by the "multi"-lost timer, and since that one is not around any longer, the "num" concept is superfluous.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/rtptimerqueue.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/check/elements/rtptimerqueue.c b/tests/check/elements/rtptimerqueue.c
index e7ba45f34..a39da7f91 100644
--- a/tests/check/elements/rtptimerqueue.c
+++ b/tests/check/elements/rtptimerqueue.c
@@ -27,12 +27,11 @@ GST_START_TEST (test_timer_queue_set_timer)
RtpTimerQueue *queue = rtp_timer_queue_new ();
RtpTimer *timer10, *timer0;
- rtp_timer_queue_set_timer (queue, RTP_TIMER_EXPECTED, 10, 0,
+ rtp_timer_queue_set_timer (queue, RTP_TIMER_EXPECTED, 10,
1 * GST_SECOND, 2 * GST_SECOND, 5 * GST_SECOND, 0);
timer10 = rtp_timer_queue_find (queue, 10);
fail_unless (timer10);
fail_unless_equals_int (10, timer10->seqnum);
- fail_unless_equals_int (0, timer10->num);
fail_unless_equals_int (RTP_TIMER_EXPECTED, timer10->type);
/* timer10->timeout = timerout + delay */
fail_unless_equals_uint64 (3 * GST_SECOND, timer10->timeout);
@@ -44,12 +43,11 @@ GST_START_TEST (test_timer_queue_set_timer)
fail_unless_equals_int (0, timer10->num_rtx_retry);
fail_unless_equals_int (0, timer10->num_rtx_received);
- rtp_timer_queue_set_timer (queue, RTP_TIMER_LOST, 0, 10,
+ rtp_timer_queue_set_timer (queue, RTP_TIMER_LOST, 0,
0 * GST_SECOND, 2 * GST_SECOND, 0, 0);
timer0 = rtp_timer_queue_find (queue, 0);
fail_unless (timer0);
fail_unless_equals_int (0, timer0->seqnum);
- fail_unless_equals_int (10, timer0->num);
fail_unless_equals_int (RTP_TIMER_LOST, timer0->type);
fail_unless_equals_uint64 (2 * GST_SECOND, timer0->timeout);
fail_unless_equals_uint64 (0, timer0->duration);
@@ -291,7 +289,7 @@ GST_START_TEST (test_timer_queue_timer_offset)
RtpTimerQueue *queue = rtp_timer_queue_new ();
RtpTimer *timer;
- rtp_timer_queue_set_timer (queue, RTP_TIMER_EXPECTED, 2, 0, 2 * GST_SECOND,
+ rtp_timer_queue_set_timer (queue, RTP_TIMER_EXPECTED, 2, 2 * GST_SECOND,
GST_MSECOND, 0, GST_USECOND);
timer = rtp_timer_queue_find (queue, 2);