fix crash in qos stateful analyser when there is nothing to smooth

parent 124f6c61
......@@ -356,6 +356,12 @@ static void smooth_values(MSStatefulQosAnalyser *obj){
}else{
it = first_loss;
}
/*nothing to smooth*/
if (it == NULL){
return;
}
curr = (rtcpstatspoint_t *)it->data;
while (it->next != NULL){
......
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