From eeb8eb0b9de0f819f509b1e70ab149ac972cc78d Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 31 May 2022 14:27:51 +0200 Subject: [PATCH] basetransform: fix critical if transform_caps() returned NULL klass->transform_caps() may return NULL, which was raising this critical: GStreamer-CRITICAL **: 12:23:56.243: gst_caps_is_subset: assertion 'subset != NULL' failed Part-of: --- subprojects/gstreamer/libs/gst/base/gstbasetransform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;