Commit eba3bba5 authored by Wim Taymans's avatar Wim Taymans
Browse files

rtpjitterbuffer: optimize timer update

When we are not doing retransmission, we just need to find the current
seqnum so we can stop when we found it.
parent b2c9646a
......@@ -1823,6 +1823,10 @@ update_timers (GstRtpJitterBuffer * jitterbuffer, guint16 seqnum,
GST_DEBUG ("found timer for current seqnum");
/* the timer for the current seqnum */
timer = test;
/* when no retransmission, we can stop now, we only need to find the
* timer for the current seqnum */
if (!priv->do_retransmission)
} else if (gap > priv->rtx_delay_reorder) {
/* max gap, we exceeded the max reorder distance and we don't expect the
* missing packet to be this reordered */
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