rtpamrdepay: unmap rtp buffer

... thereby plugging a memleak.
This commit is contained in:
Mark Nauwelaerts 2012-09-07 15:23:44 +02:00
parent 7940a29c74
commit f24b58d19c

View file

@ -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;
}
}