mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rtpg729pay: fix buffer leak
The handle_buffer vfunc takes ownership of the input buffer. Fixes elements/rtp-payloading under valgrind.
This commit is contained in:
parent
6faeb75170
commit
f07d61a9ef
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ gst_rtp_g729_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buf)
|
|||
rtpg729pay->next_ts = timestamp;
|
||||
|
||||
if (available == 0 && size >= min_payload_len && size <= max_payload_len) {
|
||||
ret = gst_rtp_g729_pay_push (rtpg729pay, gst_buffer_ref (buf));
|
||||
ret = gst_rtp_g729_pay_push (rtpg729pay, buf);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue