update oRTP, changed ortp_estimator constructor prototype

parent 4cad850c
......@@ -248,7 +248,7 @@ MSQosAnalyzer * ms_simple_qos_analyzer_new(RtpSession *session){
obj->session=session;
obj->parent.desc=&simple_analyzer_desc;
obj->parent.type=Simple;
obj->parent.lre=ortp_loss_rate_estimator_new(LOSS_RATE_MIN_INTERVAL, rtp_session_get_seq_number(session));
obj->parent.lre=ortp_loss_rate_estimator_new(LOSS_RATE_MIN_INTERVAL, session);
return (MSQosAnalyzer*)obj;
}
......@@ -606,7 +606,7 @@ MSQosAnalyzer * ms_stateful_qos_analyzer_new(RtpSession *session){
obj->session=session;
obj->parent.desc=&stateful_analyzer_desc;
obj->parent.type=Stateful;
obj->parent.lre=ortp_loss_rate_estimator_new(LOSS_RATE_MIN_INTERVAL, rtp_session_get_seq_number(session));
obj->parent.lre=ortp_loss_rate_estimator_new(LOSS_RATE_MIN_INTERVAL, session);
/*burst period will double the upload bandwidth assuming 5 sec RTCP reports interval*/
obj->burst_duration_ms=1000;
......
......@@ -52,7 +52,7 @@ struct _MSQualityIndicator{
MSQualityIndicator *ms_quality_indicator_new(RtpSession *session){
MSQualityIndicator *qi=ms_new0(MSQualityIndicator,1);
qi->session=session;
qi->lr_estimator=ortp_loss_rate_estimator_new(SEQ_INTERVAL,rtp_session_get_seq_number(qi->session));
qi->lr_estimator=ortp_loss_rate_estimator_new(SEQ_INTERVAL, qi->session);
qi->rating=5.0;
qi->lq_rating=5.0;
qi->local_rating=1.0;
......@@ -137,7 +137,7 @@ void ms_quality_indicator_update_from_feedback(MSQualityIndicator *qi, mblk_t *r
float inter_jitter=(float)report_block_get_interarrival_jitter(rb)/(float)qi->clockrate;
float rt_prop=rtp_session_get_round_trip_propagation(qi->session);
bool_t new_value;
new_value=ortp_loss_rate_estimator_process_report_block(qi->lr_estimator,rb);
loss_rate=ortp_loss_rate_estimator_get_value(qi->lr_estimator);
qi->remote_rating=compute_rating(loss_rate/100.0,inter_jitter,0,rt_prop);
......
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