projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6faeb75
)
rtpg729pay: fix buffer leak
author
Tim-Philipp Müller
<tim@centricular.com>
Tue, 7 Jul 2015 14:48:40 +0000
(15:48 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Tue, 7 Jul 2015 14:50:37 +0000
(15:50 +0100)
The handle_buffer vfunc takes ownership of the input buffer.
Fixes elements/rtp-payloading under valgrind.
gst/rtp/gstrtpg729pay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtpg729pay.c
b/gst/rtp/gstrtpg729pay.c
index
1fbab66
..
1c695bd
100644
(file)
--- a/
gst/rtp/gstrtpg729pay.c
+++ b/
gst/rtp/gstrtpg729pay.c
@@
-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;
}