webrtcbin: Ignore current caps for codec negotiation
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 6 May 2021 21:50:38 +0000 (17:50 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Thu, 13 May 2021 19:05:00 +0000 (15:05 -0400)
commit3065ac49fb80c85de49171a2c60b07002a2ce0cd
tree750fe9b919fa2d777b915f69d21d561010909182
parent4bb94c69701ea18371d572510219c9bbd2f187c4
webrtcbin: Ignore current caps for codec negotiation

On the sink pad, we want the caps of the current stream, those
are the "received_caps" field. If we haven't received caps yet, then
we only care about the caps that the next element can accept, that is
the caps from the peer pad (and the preferences). Otherwise, we prevent
re-negotiation to a better codec when possible.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2183>
ext/webrtc/gstwebrtcbin.c