Commit 59639bae 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>
(cherry picked from commit 70f1a04f)
parent 060de331
...@@ -383,11 +383,12 @@ rtp_decode (demux_t *demux, const rtp_session_t *session, rtp_source_t *src) ...@@ -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 != 0)
{ {
if (delta_seq >= 0x8000) if (delta_seq >= 0x8000)
{ /* Unrecoverable if later packets have already been dequeued */ { /* Trash too late packets (and PIM Assert duplicates) */
msg_Warn (demux, "ignoring late packet (sequence: %"PRIu16")", msg_Dbg (demux, "ignoring late packet (sequence: %"PRIu16")",
rtp_seq (block)); rtp_seq (block));
goto drop; goto drop;
} }
msg_Warn (demux, "%"PRIu16" packet(s) lost", delta_seq);
block->i_flags |= BLOCK_FLAG_DISCONTINUITY; block->i_flags |= BLOCK_FLAG_DISCONTINUITY;
} }
src->last_seq = rtp_seq (block); 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