Commit 86863cd0 authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

quality_reporting_tester.c: Fix "Interval report if interval is configured"...

quality_reporting_tester.c: Fix "Interval report if interval is configured" test by resetting RTCP SR count at each report
parent 8fd0b3cc
......@@ -70,6 +70,8 @@ void on_report_send_mandatory(const LinphoneCall *call, int stream_type, const L
CU_ASSERT_PTR_NOT_NULL(body=__strstr(body, "DialogID:"));
if (report->remote_metrics.rtcp_sr_count&&ms!=NULL&&ms->rc!=NULL){
/* Hack: reset rtcp_sr_count to 0 because in case of interval reports, we need one RTCP SR by interval */
report->remote_metrics.rtcp_sr_count=0;
CU_ASSERT_PTR_NOT_NULL(body=__strstr(body, "AdaptiveAlg:"));
}
}
......
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