webrtcbin: deduplicate extmaps
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 23 Nov 2021 19:12:06 +0000 (20:12 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 25 Nov 2021 18:38:22 +0000 (18:38 +0000)
commite90859f4d8a23167fee9ef18779d3797ff510b60
treedcd7c19441f6c94b636440f25191fb74bfddd16f
parentd867180b4e6efec3a0a866e4123938dbe0a4a79c
webrtcbin: deduplicate extmaps

When an extmap is defined twice for the same ID, firefox complains and
errors out (chrome is smart enough to accept strict duplicates).

To work around this, we deduplicate extmap attributes, and also error
out when a different extmap is defined for the same ID.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1383>
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c
subprojects/gst-plugins-bad/tests/check/elements/webrtcbin.c