projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32a3d6e
)
rtpdec: fix some buffer leaks
author
Krzysztof Błaszkowski
<kb at sysmikro.com.pl>
Thu, 25 Jun 2009 11:18:14 +0000
(13:18 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 25 Jun 2009 11:18:14 +0000
(13:18 +0200)
gst/rtsp/gstrtpdec.c
patch
|
blob
|
history
diff --git
a/gst/rtsp/gstrtpdec.c
b/gst/rtsp/gstrtpdec.c
index
bacfea1
..
5279713
100644
(file)
--- a/
gst/rtsp/gstrtpdec.c
+++ b/
gst/rtsp/gstrtpdec.c
@@
-541,6
+541,7
@@
bad_packet:
{
GST_ELEMENT_WARNING (rtpdec, STREAM, DECODE, (NULL),
("RTP packet did not validate, dropping"));
+ gst_buffer_unref (buffer);
return GST_FLOW_OK;
}
}
@@
-695,9
+696,11
@@
gst_rtp_dec_chain_rtcp (GstPad * pad, GstBuffer * buffer)
bad_packet:
{
GST_WARNING_OBJECT (src, "got invalid RTCP packet");
+ gst_buffer_unref (buffer);
return GST_FLOW_OK;
}
#else
+ gst_buffer_unref (buffer);
return GST_FLOW_OK;
#endif
}