webrtc: don't generate duplicate rtx payloads when bundle-policy is set 81/263481/1
authorMatthew Waters <matthew@centricular.com>
Mon, 1 Mar 2021 09:53:53 +0000 (20:53 +1100)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 3 Sep 2021 06:47:35 +0000 (15:47 +0900)
commit8157d38361c152b5d91d4279ed6aa6f3f665ae60
treecea9a9326743881ffc539d2c5c3ae1673f42f303
parent9f36dfcd68bb969838307d65141ca8905abff6d3
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

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