mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
rtp/vrawpay: use alloc_output_buffer from base class
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/726>
This commit is contained in:
parent
cfae2a37be
commit
5340de5c33
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue