gst/rtpmanager/gstrtpjitterbuffer.c: Simply drop bad RTP packets with a warning inste...
authorWim Taymans <wim.taymans@gmail.com>
Wed, 14 May 2008 21:02:19 +0000 (21:02 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 14 May 2008 21:02:19 +0000 (21:02 +0000)
Original commit message from CVS:
* gst/rtpmanager/gstrtpjitterbuffer.c:
(gst_rtp_jitter_buffer_chain):
Simply drop bad RTP packets with a warning instead of just posting an
error and stopping. This is a perfectly recoverable event and we don't
force people to use an rtpbin to filter out bad packets first.

ChangeLog
gst/rtpmanager/gstrtpjitterbuffer.c

index 3546af5..18247f5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2008-05-14  Wim Taymans  <wim.taymans@collabora.co.uk>
 
+       * gst/rtpmanager/gstrtpjitterbuffer.c:
+       (gst_rtp_jitter_buffer_chain):
+       Simply drop bad RTP packets with a warning instead of just posting an
+       error and stopping. This is a perfectly recoverable event and we don't
+       force people to use an rtpbin to filter out bad packets first.
+
+2008-05-14  Wim Taymans  <wim.taymans@collabora.co.uk>
+
        * gst/mpeg4videoparse/mpeg4videoparse.c: (gst_mpeg4vparse_init):
        Set fixed caps on the srcpad after we created the pad...
 
index c62a6c5..46439dc 100644 (file)
@@ -945,12 +945,12 @@ finished:
   /* ERRORS */
 invalid_buffer:
   {
-    /* this is fatal and should be filtered earlier */
-    GST_ELEMENT_ERROR (jitterbuffer, STREAM, DECODE, (NULL),
-        ("Received invalid RTP payload"));
+    /* this is not fatal but should be filtered earlier */
+    GST_ELEMENT_WARNING (jitterbuffer, STREAM, DECODE, (NULL),
+        ("Received invalid RTP payload, dropping"));
     gst_buffer_unref (buffer);
     gst_object_unref (jitterbuffer);
-    return GST_FLOW_ERROR;
+    return GST_FLOW_OK;
   }
 not_negotiated:
   {