rtpbasepayload: rtpbasedepayload: Add source-info property
authorStian Selnes <stian@pexip.com>
Wed, 10 Oct 2018 18:16:12 +0000 (14:16 -0400)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Wed, 10 Oct 2018 18:38:01 +0000 (14:38 -0400)
commitf766b85b96b8fe1c4d855ed52da6ad42794bc09c
treef796fed48f016ae2c0bd7c4d6f1a73de57f419a2
parent1b9ed134d1e27d5f443753aa27d28d68b5bd4175
rtpbasepayload: rtpbasedepayload: Add source-info property

Add a source-info property that will read/write meta to the buffers
about RTP source information. The GstRTPSourceMeta can be used to
transport information about the origin of a buffer, e.g. the sources
that is included in a mixed audio buffer.

A new function gst_rtp_base_payload_allocate_output_buffer() is added
for payloaders to use to allocate the output RTP buffer with the correct
number of CSRCs according to the meta and fill it.

RTPSourceMeta does not make sense on RTP buffers since the information
is in the RTP header. So the payloader will strip the meta from the
output buffer.

https://bugzilla.gnome.org/show_bug.cgi?id=761947
17 files changed:
docs/libs/gst-plugins-base-libs-docs.sgml
docs/libs/gst-plugins-base-libs-sections.txt
gst-libs/gst/rtp/Makefile.am
gst-libs/gst/rtp/gstrtpbaseaudiopayload.c
gst-libs/gst/rtp/gstrtpbasedepayload.c
gst-libs/gst/rtp/gstrtpbasedepayload.h
gst-libs/gst/rtp/gstrtpbasepayload.c
gst-libs/gst/rtp/gstrtpbasepayload.h
gst-libs/gst/rtp/gstrtpmeta.c [new file with mode: 0644]
gst-libs/gst/rtp/gstrtpmeta.h [new file with mode: 0644]
gst-libs/gst/rtp/meson.build
gst-libs/gst/rtp/rtp.h
tests/check/Makefile.am
tests/check/libs/.gitignore
tests/check/libs/rtpbasedepayload.c
tests/check/libs/rtpbasepayload.c
tests/check/libs/rtpmeta.c [new file with mode: 0644]