diff --git a/subprojects/gstreamer/libs/gst/base/gstbasetransform.c b/subprojects/gstreamer/libs/gst/base/gstbasetransform.c index e4e7ee6415..b6315bf53d 100644 --- a/subprojects/gstreamer/libs/gst/base/gstbasetransform.c +++ b/subprojects/gstreamer/libs/gst/base/gstbasetransform.c @@ -475,7 +475,7 @@ gst_base_transform_transform_caps (GstBaseTransform * trans, GST_LOG_OBJECT (trans, " to: %" GST_PTR_FORMAT, ret); #ifdef GST_ENABLE_EXTRA_CHECKS - if (filter) { + if (ret && filter) { if (!gst_caps_is_subset (ret, filter)) { GstCaps *intersection;