rtpsource: add comment to explain why probation queue is not always cleared

This commit is contained in:
Antonio Ospite 2019-03-06 09:52:45 +01:00
parent 6f12f1cecc
commit e98b0ca8da

View file

@ -1133,7 +1133,14 @@ update_receiver_stats (RTPSource * src, RTPPacketInfo * pinfo,
goto done; goto done;
} }
} else { } else {
/* unexpected seqnum in probation */ /* unexpected seqnum in probation
*
* There is no need to clean the queue at this point because the
* invalid packets in the queue are not going to be pushed as we are
* still in probation, and some cleanup will be performed at future
* probation attempts anyway if there are too many old packets in the
* queue.
*/
goto probation_seqnum; goto probation_seqnum;
} }
} else if (delta >= 0 && delta < max_dropout) { } else if (delta >= 0 && delta < max_dropout) {