projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a2427e
)
rtp: dump packets which we reject
author
Stefan Kost
<ensonic@users.sf.net>
Wed, 28 Oct 2009 08:17:43 +0000
(10:17 +0200)
committer
Stefan Kost
<ensonic@users.sf.net>
Wed, 28 Oct 2009 09:30:58 +0000
(11:30 +0200)
gst-libs/gst/rtp/gstrtpbuffer.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/rtp/gstrtpbuffer.c
b/gst-libs/gst/rtp/gstrtpbuffer.c
index
c13f71e
..
b050b08
100644
(file)
--- 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;
}
}