summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-09-16 14:16:27 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-09-30 20:36:05 -0400
commit165516f0ef12b57574e10f2e02a0430f573d1bd0 (patch)
treeb5ee5c6a2316aaf87fe4906ae2fc3b88595b54f8
parent680c97a7cae9e5ef7743750827ae1e539a075de7 (diff)
rtpg729pay: Don't leak incoming buffers after subbuffering them
-rw-r--r--gst/rtp/gstrtpg729pay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/rtp/gstrtpg729pay.c b/gst/rtp/gstrtpg729pay.c
index 003988e3..733379c4 100644
--- a/gst/rtp/gstrtpg729pay.c
+++ b/gst/rtp/gstrtpg729pay.c
@@ -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) {