diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-09-28 18:25:21 +0300 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-09-28 15:27:17 +0000 |
commit | f95dde512c32dc31665de6c392daa88cf3b4fd53 (patch) | |
tree | d0eac60f05cb6031718dec0eb4678414409cdc5b /gst/rtp/gstrtpvp8pay.c | |
parent | d494be99167d81250bb9715015b067123d117a03 (diff) |
rtp: Fix allocations to support source-info property
Use gst_rtp_base_payload_allocate_output_buffer() instead of
gst_rtp_buffer_new_allocate() in order to allocate RTP buffer with
correct number of CSRCs according to the meta.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/612>
Diffstat (limited to 'gst/rtp/gstrtpvp8pay.c')
-rw-r--r-- | gst/rtp/gstrtpvp8pay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/rtp/gstrtpvp8pay.c b/gst/rtp/gstrtpvp8pay.c index e3c8b3483..d286029b7 100644 --- a/gst/rtp/gstrtpvp8pay.c +++ b/gst/rtp/gstrtpvp8pay.c @@ -385,9 +385,9 @@ gst_rtp_vp8_create_header_buffer (GstRtpVP8Pay * self, guint8 partid, guint8 *p; GstRTPBuffer rtpbuffer = GST_RTP_BUFFER_INIT; - out = gst_rtp_base_payload_allocate_output_buffer ( - GST_RTP_BASE_PAYLOAD_CAST (self), gst_rtp_vp8_calc_header_len (self), - 0, 0); + out = + gst_rtp_base_payload_allocate_output_buffer (GST_RTP_BASE_PAYLOAD_CAST + (self), gst_rtp_vp8_calc_header_len (self), 0, 0); gst_rtp_buffer_map (out, GST_MAP_READWRITE, &rtpbuffer); p = gst_rtp_buffer_get_payload (&rtpbuffer); /* X=0,R=0,N=0,S=start,PartID=partid */ |