From de58242760a639392a42722ef591cb7cca5c83ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Mon, 31 Oct 2011 19:23:41 +0100 Subject: [PATCH] basetransform: fix crash/warning in find_transform when pad is unlinked Looks like the revert conflict in commit a44271 was resolved incorrectly. --- libs/gst/base/gstbasetransform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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