quality_reporting_tester.c: Fix "Interval report if interval is configured" test by resetting RTCP SR count at each report

This commit is contained in:
Gautier Pelloux-Prayer 2015-04-28 14:25:19 +02:00
parent 8fd0b3cccb
commit 86863cd089

View file

@ -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:"));
}
}