sdp: support multiple rid parameters
authorMatthew Waters <matthew@centricular.com>
Wed, 1 Sep 2021 04:02:29 +0000 (14:02 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 3 Mar 2022 03:34:38 +0000 (03:34 +0000)
commit207769edbb082998dbd5cccc9a17301de960f162
tree92283306a7995c3f924e7d9ac2ad09a0caf85ee7
parentf8016687a4fc65d7266cf3ac712d73e8e09eaab6
sdp: support multiple rid parameters

As specified formally in RFC8851

Each rid description is placed in its own caps field in the structure.
This is very similar to the already existing extmap-$id sdp<->caps
transformations that already exists.

The mapping is as follows:

  a=rid:0 direction ';'-separated params

where direction is either 'send' or 'recv'

gets put into a caps structure like so:

   rid-0=(string)<"direction","param1","param2",etc>

If there are no rid parameters then the caps structure is generated to
only contain the direction as a single string like:

   rid-0=(string)direction

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1760>
subprojects/gst-plugins-base/gst-libs/gst/sdp/gstsdpmessage.c
subprojects/gst-plugins-base/tests/check/libs/sdp.c