[vlc-devel] commit: Report RTP packet loss and make PIM Asserts only a debug event ( Marian Ďurkovič )

git version control git at videolan.org
Sat Sep 5 10:45:46 CEST 2009


vlc | branch: 1.0-bugfix | Marian Ďurkovič <md at bts.sk> | Sat Sep  5 11:44:33 2009 +0300| [59639baefe7b53cff3ffbb27913941914a180422] | committer: Rémi Denis-Courmont 

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

(Closes: #2718)

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 70f1a04fe007924dc412c5125bee9701eaf2f0b1)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=59639baefe7b53cff3ffbb27913941914a180422
---

 modules/access/rtp/session.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/access/rtp/session.c b/modules/access/rtp/session.c
index 7fa75be..1c61696 100644
--- a/modules/access/rtp/session.c
+++ b/modules/access/rtp/session.c
@@ -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);




More information about the vlc-devel mailing list