From 77bdd092bd8bb32ddc0a2c8fb0702673df57d102 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 6 Jun 2016 14:31:35 +0200 Subject: [PATCH] update oRTP to fix bug with RtpModifiers --- oRTP | 2 +- tester/call_tester.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oRTP b/oRTP index f21765b4a..1f1acfbd7 160000 --- a/oRTP +++ b/oRTP @@ -1 +1 @@ -Subproject commit f21765b4ae0a012906add1473768a1bf0b57567c +Subproject commit 1f1acfbd71c55c621831e7304545e4c6eae1b718 diff --git a/tester/call_tester.c b/tester/call_tester.c index 09b597af5..c6b21f854 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -5700,8 +5700,8 @@ static void custom_rtp_modifier(bool_t pauseResumeTest, bool_t recordTest) { rtp_stats_t pauline_rtp_stats = linphone_call_stats_get_rtp_stats(pauline_stats); ms_message("Marie sent %i RTP packets and received %i (for real)", (int)marie_rtp_stats.packet_sent, (int)marie_rtp_stats.packet_recv); ms_message("Pauline sent %i RTP packets and received %i (for real)", (int)pauline_rtp_stats.packet_sent, (int)pauline_rtp_stats.packet_recv); - BC_ASSERT_TRUE(data_marie->packetReceivedCount == marie_rtp_stats.packet_recv); - BC_ASSERT_TRUE(data_marie->packetSentCount == marie_rtp_stats.packet_sent); + BC_ASSERT_EQUAL(data_marie->packetReceivedCount, marie_rtp_stats.packet_recv, int, "%i"); + BC_ASSERT_EQUAL(data_marie->packetSentCount, marie_rtp_stats.packet_sent, int, "%i"); // There can be a small difference between the number of packets received in the modifier and the number processed in reception because the processing is asynchronous BC_ASSERT_TRUE(data_pauline->packetReceivedCount - pauline_rtp_stats.packet_recv < 20); BC_ASSERT_TRUE(data_pauline->packetSentCount == pauline_rtp_stats.packet_sent);