[Bug 794544] rtpbuffer: expose gst_rtp_buffer_initialize_header function

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Mar 22 15:19:37 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=794544

--- Comment #4 from Mathieu Duponchelle <mduponchelle1 at gmail.com> ---
(In reply to Olivier CrĂȘte from comment #3)
> As we required to header to be in only one memory block, the header layout
> is fixed.

I didn't get that, can you expand a bit?

> Can't you just use gst_rtp_buffer_new_allocate() with
> payload_len=0 and then append the extra GstMemory with the actual data? You
> could even have a gst_rtp_buffer_new_take(.., GstBuffer *payload_buf) ?

The use case for this is:

alawenc ! rtppcmapay , where the payloader provides a buffer pool, creating
buffers with gst_buffer_new_allocate , with a single memory, then setting the
memory offset to header_len, which means the encoder will write right after the
header and no allocation of GstMemory will occur at gst_buffer_map time,
gst_rtp_buffer_new_allocate doesn't really work for this.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list