webrtcbin: Filter caps isn't fixed

Fix an assertion because the filter paramter passed to
gst_caps_is_equal_fixed() wasn't fixed. So use the regular
gst_caps_is_equal() instead.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2175>
This commit is contained in:
Olivier Crête 2021-04-19 19:06:50 -04:00
parent f72df7d4c4
commit 813a320c06

View file

@ -1545,7 +1545,7 @@ _find_codec_preferences (GstWebRTCBin * webrtc,
GST_LOG_OBJECT (webrtc, "Using peer query caps: %" GST_PTR_FORMAT, GST_LOG_OBJECT (webrtc, "Using peer query caps: %" GST_PTR_FORMAT,
caps); caps);
if (!gst_caps_is_fixed (caps) || gst_caps_is_equal_fixed (caps, filter) if (!gst_caps_is_fixed (caps) || gst_caps_is_equal (caps, filter)
|| gst_caps_is_empty (caps) || gst_caps_is_any (caps)) { || gst_caps_is_empty (caps) || gst_caps_is_any (caps)) {
gst_caps_unref (caps); gst_caps_unref (caps);
caps = NULL; caps = NULL;