webrtc: don't generate duplicate rtx payloads when bundle-policy is set
authorMatthew Waters <matthew@centricular.com>
Mon, 1 Mar 2021 09:53:53 +0000 (20:53 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 9 Mar 2021 02:22:35 +0000 (02:22 +0000)
commit2bed22077194d48b7bc5f284c5d97a7ea1236274
tree0fbb0554f62ebfe906577832ca6ab871868e3566
parent4ccad5336fc7e10dc4a634940b98a4cbe3c8242d
webrtc: don't generate duplicate rtx payloads when bundle-policy is set

It was possible to generate a SDP that had an RTX payload type
that matched one of the media payload types when providing caps via
codec_preferences without any sink pads.

Fixes

m=video 9 UDP/TLS/RTP/SAVPF 96
...
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 nack pli
a=fmtp:96 apt=96

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