diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index 5623236cc3..183a70024d 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -1065,7 +1065,7 @@ gst_base_transform_find_transform (GstBaseTransform * trans, GstPad * pad, goto could_not_fixate; /* and peer should accept */ - if (!gst_pad_accept_caps (otherpeer, othercaps)) + if (otherpeer && !gst_pad_accept_caps (otherpeer, othercaps)) goto peer_no_accept; GST_DEBUG_OBJECT (trans, "Input caps were %" GST_PTR_FORMAT