webrtcbin: Don't require fixed caps when querying caps for a transceiver pad to match...
authorSebastian Dröge <sebastian@centricular.com>
Tue, 2 Nov 2021 09:21:34 +0000 (11:21 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 4 Nov 2021 10:51:15 +0000 (10:51 +0000)
commitd628ccf0e5193de683296f725818cd8d66e1bab5
tree378522389907576f1d630c15bac786aee10be9f1
parenta46ab2ced20d757e0e770d4de1edc3a152cc4f2f
webrtcbin: Don't require fixed caps when querying caps for a transceiver pad to match it with a media

Upstream caps might for example be
  application/x-rtp,media=audio,encoding-name={OPUS, X-GST-OPUS-DRAFT-SPITTKA-00, multiopus}
and while that is not fixed caps it is enough to match it with a media.

Only caps structures that have the correct structure name and that have
the media and encoding-name field are preserved, but if both are present
then these caps are used as "codec preferences".

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