rtp/vrawpay: use alloc_output_buffer from base class
authorCamilo Celis Guzman <camilo@pexip.com>
Sun, 13 Sep 2020 16:31:57 +0000 (18:31 +0200)
committerCamilo Celis Guzman <camilo@pexip.com>
Sun, 13 Sep 2020 21:16:10 +0000 (23:16 +0200)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/726>

gst/rtp/gstrtpvrawpay.c

index fa43ac8..3059071 100644 (file)
@@ -353,7 +353,7 @@ gst_rtp_vraw_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buffer)
 
       /* get the max allowed payload length size, we try to fill the complete MTU */
       left = gst_rtp_buffer_calc_payload_len (mtu, 0, 0);
-      out = gst_rtp_buffer_new_allocate (left, 0, 0);
+      out = gst_rtp_base_payload_allocate_output_buffer (payload, left, 0, 0);
 
       if (discont) {
         GST_BUFFER_FLAG_SET (out, GST_BUFFER_FLAG_DISCONT);