Commit 70f1a04f authored by Marian Ďurkovič's avatar Marian Ďurkovič Committed by Rémi Denis-Courmont

Report RTP packet loss and make PIM Asserts only a debug event

(Closes: #2718)
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 7058cb6f
......@@ -383,11 +383,12 @@ rtp_decode (demux_t *demux, const rtp_session_t *session, rtp_source_t *src)
if (delta_seq != 0)
{
if (delta_seq >= 0x8000)
{ /* Unrecoverable if later packets have already been dequeued */
msg_Warn (demux, "ignoring late packet (sequence: %"PRIu16")",
{ /* Trash too late packets (and PIM Assert duplicates) */
msg_Dbg (demux, "ignoring late packet (sequence: %"PRIu16")",
rtp_seq (block));
goto drop;
}
msg_Warn (demux, "%"PRIu16" packet(s) lost", delta_seq);
block->i_flags |= BLOCK_FLAG_DISCONTINUITY;
}
src->last_seq = rtp_seq (block);
......
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