From e98b0ca8da588d6d23769e59791a225de2a7a5cf Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 6 Mar 2019 09:52:45 +0100 Subject: [PATCH] rtpsource: add comment to explain why probation queue is not always cleared --- gst/rtpmanager/rtpsource.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c index d712fc6a0e..c381b4f8c9 100644 --- a/gst/rtpmanager/rtpsource.c +++ b/gst/rtpmanager/rtpsource.c @@ -1133,7 +1133,14 @@ update_receiver_stats (RTPSource * src, RTPPacketInfo * pinfo, goto done; } } 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; } } else if (delta >= 0 && delta < max_dropout) {