Commit f24b58d1 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

rtpamrdepay: unmap rtp buffer

... thereby plugging a memleak.
parent 7940a29c
......@@ -413,6 +413,8 @@ gst_rtp_amr_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
GST_DEBUG_OBJECT (depayload, "pushing buffer of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (outbuf));
}
gst_rtp_buffer_unmap (&rtp);
return outbuf;
/* ERRORS */
......@@ -449,6 +451,7 @@ wrong_length_2:
bad_packet:
{
/* no fatal error */
gst_rtp_buffer_unmap (&rtp);
return NULL;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment