summaryrefslogtreecommitdiff
path: root/gst-libs/gst/rtp
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2015-07-30 12:50:56 +0100
committerTim-Philipp Müller <tim@centricular.com>2015-07-30 12:50:56 +0100
commit232bdf17115419da61c3b1ce2c5b02d74e34d403 (patch)
tree842a7c212913f328fc82ea0a5a0a2cad7d839179 /gst-libs/gst/rtp
parent5830db7050d452fdf250898458e706636c764a4f (diff)
rtpbasedepayload: fix leaks in error code paths
This was introduced when reshuffling the buffer unmaps in commit bc14cdf529e21356ea7b2c8f34614958a91f7260 rtp: rtpbasedepayload: add process_rtp_packet() vfunc Fixes make check-valgrind. https://bugzilla.gnome.org/show_bug.cgi?id=750235
Diffstat (limited to 'gst-libs/gst/rtp')
-rw-r--r--gst-libs/gst/rtp/gstrtpbasedepayload.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/rtp/gstrtpbasedepayload.c b/gst-libs/gst/rtp/gstrtpbasedepayload.c
index 95d260dba..fac757d45 100644
--- a/gst-libs/gst/rtp/gstrtpbasedepayload.c
+++ b/gst-libs/gst/rtp/gstrtpbasedepayload.c
@@ -487,11 +487,13 @@ invalid_buffer:
}
dropping:
{
+ gst_rtp_buffer_unmap (&rtp);
GST_WARNING_OBJECT (filter, "%d <= 100, dropping old packet", gap);
return GST_FLOW_OK;
}
no_process:
{
+ gst_rtp_buffer_unmap (&rtp);
/* this is not fatal but should be filtered earlier */
GST_ELEMENT_ERROR (filter, STREAM, NOT_IMPLEMENTED, (NULL),
("The subclass does not have a process or process_rtp_packet method"));