diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/rtp/gstrtpg729pay.c | 3 |
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) { |