[vlc-devel] commit: Add some warnings ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Dec 4 19:54:50 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Dec  3 22:25:11 2008 +0200| [9da6dd53dab766aec020176861fcd63c606619b6] | committer: Rémi Denis-Courmont 

Add some warnings

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

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

diff --git a/modules/access/rtp/session.c b/modules/access/rtp/session.c
index 497b02a..40b3a4c 100644
--- a/modules/access/rtp/session.c
+++ b/modules/access/rtp/session.c
@@ -358,7 +358,11 @@ rtp_queue (demux_t *demux, rtp_session_t *session, block_t *block)
         if (delta_seq < 0)
             break;
         if (delta_seq == 0)
+        {
+            msg_Warn (demux, "duplicate packet (sequence: %"PRIu16")",
+                      seq);
             goto drop; /* duplicate */
+        }
         pp = &prev->p_next;
     }
     block->p_next = *pp;
@@ -400,7 +404,7 @@ rtp_decode (demux_t *demux, const rtp_session_t *session, rtp_source_t *src)
     const rtp_pt_t *pt = rtp_find_ptype (session, src, block, &pt_data);
     if (pt == NULL)
     {
-        msg_Dbg (demux, "ignoring unknown payload (%"PRIu8")",
+        msg_Dbg (demux, "unknown payload (%"PRIu8")",
                  rtp_ptype (block));
         goto drop;
     }




More information about the vlc-devel mailing list