sdp: Add support for parsing the extmap attribute from caps and storing inside caps
authorSebastian Dröge <sebastian@centricular.com>
Tue, 9 Jul 2019 11:28:46 +0000 (14:28 +0300)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Sat, 13 Jul 2019 12:18:15 +0000 (12:18 +0000)
commit1381e3e2be7f0c2151aaacc14ae1668ecdc120b8
tree73f400b8f444bf89ef1715f621391ef6ddd211d3
parent6d49814932555aa4c60e9c798eb2867b4b23a104
sdp: Add support for parsing the extmap attribute from caps and storing inside caps

The extmap attribute allows mapping RTP extension header IDs to
well-known RTP extension header specifications. See RFC8285 for details.

We store the extmap attribute either as string in the caps
  extmap-X=extensionname
where X is the integer extension header ID, or as 3-tuple of strings
  extmap-X=<direction,extensionname,extensionattributes>
where direction or extensionattributes are allowed to be the empty
string.

Both formats are allowed because usually only the extension name is
given and it's much simpler to handle in caps.
gst-libs/gst/sdp/gstsdpmessage.c
tests/check/libs/sdp.c