From c62209d050c146e1f6ac674fa96c162d3dc35399 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 25 Dec 2014 15:48:04 +0000 Subject: [PATCH] rtpptdemux: just drop invalid rtp packets instead of erroring out Apparently linphone sends an invalid RTP packet as very first packet. We want to ignore that instead of erroring out (same for any other invalid packets really). https://bugzilla.gnome.org/show_bug.cgi?id=741398 --- gst/rtpmanager/gstrtpptdemux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtpmanager/gstrtpptdemux.c b/gst/rtpmanager/gstrtpptdemux.c index f632adf..d764bee 100644 --- a/gst/rtpmanager/gstrtpptdemux.c +++ b/gst/rtpmanager/gstrtpptdemux.c @@ -448,8 +448,8 @@ gst_rtp_pt_demux_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) /* ERRORS */ invalid_buffer: { - /* this is fatal and should be filtered earlier */ - GST_ELEMENT_ERROR (rtpdemux, STREAM, DECODE, (NULL), + /* this should not be fatal */ + GST_ELEMENT_WARNING (rtpdemux, STREAM, DEMUX, (NULL), ("Dropping invalid RTP payload")); gst_buffer_unref (buf); return GST_FLOW_ERROR; -- 2.7.4