rtpfunnel: fix extmap handling on accept-caps
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 23 Nov 2021 19:54:57 +0000 (20:54 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 23 Nov 2021 20:26:30 +0000 (20:26 +0000)
commit4412198c0540a50f343d36530f7e3d4e9cdc74c8
treec4f3b0032deb182c616d2ec32374938c89fa1618
parent423acef4d9930a68129ab5b18bdee3a9bc103309
rtpfunnel: fix extmap handling on accept-caps

Follow-up on 97d83056b315c56834eaa6776ae4c6a0848b5ef9, only check
for intersection with the current srccaps when checking if a sinkpad
can accept caps.

I must have been lucky in my firefox testing then, and always entered
the code path with audio getting negotiated first, thus not failing
the is_subset check when srccaps had been negotiated as
application/x-rtp, and an accept-caps query was made for the video
caps with a defined extmap.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1384>
subprojects/gst-plugins-good/gst/rtpmanager/gstrtpfunnel.c
subprojects/gst-plugins-good/tests/check/elements/rtpfunnel.c