Report RTP packet loss and make PIM Asserts only a debug event
authorMarian Ďurkovič <md@bts.sk>
Sat, 5 Sep 2009 08:44:33 +0000 (11:44 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 5 Sep 2009 08:44:33 +0000 (11:44 +0300)
(Closes: #2718)

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/access/rtp/session.c

index b8d8722..5b7dccb 100644 (file)
@@ -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);