Commit d51e5aa8 authored by jehan's avatar jehan

only check seq discontinuity after RTP_SESSION_FIRST_PACKET_DELIVERED

parent 761cfd7c
......@@ -1070,8 +1070,8 @@ rtp_session_pick_with_cseq (RtpSession * session, const uint16_t sequence_number
static void check_for_seq_number_gap(RtpSession *session, rtp_header_t *rtp) {
uint16_t pid;
uint16_t i;
if (RTP_SEQ_IS_STRICTLY_GREATER_THAN(rtp->seq_number, session->rtp.rcv_last_seq + 1)) {
/*don't check anything before first packet delivered*/
if (session->flags & RTP_SESSION_FIRST_PACKET_DELIVERED && RTP_SEQ_IS_STRICTLY_GREATER_THAN(rtp->seq_number, session->rtp.rcv_last_seq + 1)) {
uint16_t first_missed_seq = session->rtp.rcv_last_seq + 1;
uint16_t diff = rtp->seq_number - first_missed_seq;
pid = first_missed_seq;
......
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