mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 10:04:23 +00:00
rtpamrdepay: unmap rtp buffer
... thereby plugging a memleak.
This commit is contained in:
parent
7940a29c74
commit
f24b58d19c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue