webrtcbin: Filter caps isn't fixed
authorOlivier Crête <olivier.crete@collabora.com>
Mon, 19 Apr 2021 23:06:50 +0000 (19:06 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Mon, 19 Apr 2021 23:06:50 +0000 (19:06 -0400)
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>

ext/webrtc/gstwebrtcbin.c

index 107d4dc..6eacfba 100644 (file)
@@ -1545,7 +1545,7 @@ _find_codec_preferences (GstWebRTCBin * webrtc,
         GST_LOG_OBJECT (webrtc, "Using peer query caps: %" GST_PTR_FORMAT,
             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_unref (caps);
           caps = NULL;