Commit e163feaa authored by jehan's avatar jehan

various tester improvements

parent 176874ef
......@@ -251,7 +251,7 @@ static void encrypted_audio_stream_base( bool_t change_ssrc,
/* No packet loss is assumed */
if (change_send_key_in_the_middle) {
/*we can accept one or 2 error in such case*/
CU_ASSERT_TRUE((marielle_stats.rtp.sent-margaux_stats.rtp.recv)<3);
CU_ASSERT_TRUE((marielle_stats.rtp.packet_sent-margaux_stats.rtp.packet_recv)<3);
} else
CU_ASSERT_EQUAL(marielle_stats.rtp.sent,margaux_stats.rtp.recv);
......
......@@ -229,10 +229,14 @@ bool_t wait_for_list_with_parse_events(MSList *mss, int *counter, int value, int
ms_tester_iterate_cb cb = NULL;
media_stream_iterate(stream);
if ((retry % 10) == 0) {
ms_message("stream [%p] bandwidth usage: [d=%.1f,u=%.1f] kbit/sec",
stream,
media_stream_get_down_bw(stream) / 1000,
media_stream_get_up_bw(stream) / 1000);
ms_message("stream [%p] bandwidth usage: rtp [d=%.1f,u=%.1f] kbit/sec",
stream,
media_stream_get_down_bw(stream) / 1000,
media_stream_get_up_bw(stream) / 1000);
ms_message("stream [%p] bandwidth usage: rtcp[d=%.1f,u=%.1f] kbit/sec",
stream,
media_stream_get_rtcp_down_bw(stream) / 1000,
media_stream_get_rtcp_up_bw(stream) / 1000);
}
if (cbi && ptri) {
cb = (ms_tester_iterate_cb)cbi->data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment