Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-07-03 13:18:52 +0300
committerSebastian Dröge <sebastian@centricular.com>2015-07-03 13:19:05 +0300
commit9dfae82566ac5d3e5c2bce59614cfd9278cc9a03 (patch)
tree28de6cce909433a3687aeb5120f5c6918c7783cf
parent7e1d28d27fd2473a60117b4ce34f1489372170ab (diff)
rtpmpvdepay: Don't forget to unmap the input buffer
-rw-r--r--gst/rtp/gstrtpmpvdepay.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gst/rtp/gstrtpmpvdepay.c b/gst/rtp/gstrtpmpvdepay.c
index 7d8646cd2..e65df92fe 100644
--- a/gst/rtp/gstrtpmpvdepay.c
+++ b/gst/rtp/gstrtpmpvdepay.c
@@ -117,7 +117,7 @@ static GstBuffer *
gst_rtp_mpv_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
{
GstRtpMPVDepay *rtpmpvdepay;
- GstBuffer *outbuf;
+ GstBuffer *outbuf = NULL;
GstRTPBuffer rtp = { NULL };
rtpmpvdepay = GST_RTP_MPV_DEPAY (depayload);
@@ -176,16 +176,19 @@ gst_rtp_mpv_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
"gst_rtp_mpv_depay_chain: pushing buffer of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (outbuf));
}
- return outbuf;
}
- return NULL;
+ gst_rtp_buffer_unmap (&rtp);
+
+ return outbuf;
/* ERRORS */
empty_packet:
{
GST_ELEMENT_WARNING (rtpmpvdepay, STREAM, DECODE,
(NULL), ("Empty payload."));
+ gst_rtp_buffer_unmap (&rtp);
+ gst_buffer_unref (buf);
return NULL;
}
}