From f3db4e01b5fa3635447005f36452a10476139995 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 28 Oct 2009 10:17:43 +0200 Subject: [PATCH] rtp: dump packets which we reject --- gst-libs/gst/rtp/gstrtpbuffer.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/rtp/gstrtpbuffer.c b/gst-libs/gst/rtp/gstrtpbuffer.c index c13f71ea4c..b050b080fa 100644 --- a/gst-libs/gst/rtp/gstrtpbuffer.c +++ b/gst-libs/gst/rtp/gstrtpbuffer.c @@ -359,16 +359,21 @@ validate_data (guint8 * data, guint len, guint8 * payload, guint payload_len) wrong_length: { GST_DEBUG ("len < header_len check failed (%d < %d)", len, header_len); - return FALSE; + goto dump_packet; } wrong_version: { GST_DEBUG ("version check failed (%d != %d)", version, GST_RTP_VERSION); - return FALSE; + goto dump_packet; } wrong_padding: { GST_DEBUG ("padding check failed (%d - %d < %d)", len, header_len, padding); + goto dump_packet; + } +dump_packet: + { + GST_MEMDUMP ("buffer", data, len); return FALSE; } }