Fixes crash in audiotestsrc because of an unsupported format
getting negotiated on big-endian systems with
audiotestsrc ! interleave ! audioconvert ! wavenc
GST_OBJECT_UNLOCK (self);
+ if (filter != NULL) {
+ GstCaps *caps = result;
+
+ GST_LOG_OBJECT (pad, "intersecting filter caps %" GST_PTR_FORMAT " with "
+ "preliminary result %" GST_PTR_FORMAT, filter, caps);
+
+ result = gst_caps_intersect_full (filter, caps, GST_CAPS_INTERSECT_FIRST);
+ gst_caps_unref (caps);
+ }
+
GST_DEBUG_OBJECT (pad, "Returning caps %" GST_PTR_FORMAT, result);
return result;