basetransform: fix crash/warning in find_transform when pad is unlinked

Looks like the revert conflict in commit a44271 was resolved incorrectly.
This commit is contained in:
René Stadler 2011-10-31 19:23:41 +01:00
parent 221c9423d3
commit de58242760

View file

@ -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