diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-07-03 13:18:52 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-07-03 13:19:05 +0300 |
commit | 9dfae82566ac5d3e5c2bce59614cfd9278cc9a03 (patch) | |
tree | 28de6cce909433a3687aeb5120f5c6918c7783cf | |
parent | 7e1d28d27fd2473a60117b4ce34f1489372170ab (diff) |
rtpmpvdepay: Don't forget to unmap the input buffer
-rw-r--r-- | gst/rtp/gstrtpmpvdepay.c | 9 |
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; } } |