mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-24 09:34:25 +00:00
rtpg729pay: Don't leak incoming buffers after subbuffering them
This commit is contained in:
parent
680c97a7ca
commit
165516f0ef
1 changed files with 1 additions and 2 deletions
|
@ -275,9 +275,8 @@ gst_rtp_g729_pay_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buf)
|
|||
buf2 = gst_buffer_create_sub (buf,
|
||||
GST_BUFFER_SIZE (buf) - available, available);
|
||||
gst_adapter_push (adapter, buf2);
|
||||
} else {
|
||||
gst_buffer_unref (buf);
|
||||
}
|
||||
gst_buffer_unref (buf);
|
||||
}
|
||||
|
||||
if (adapter) {
|
||||
|
|
Loading…
Reference in a new issue