basetransform: Don't get the parent twice in the setcaps function

This commit is contained in:
Sebastian Dröge 2011-05-05 18:21:21 +02:00
parent 292806f60e
commit 0069dc08ec

View file

@ -1169,8 +1169,6 @@ gst_base_transform_setcaps (GstBaseTransform * trans, GstPad * pad,
gboolean ret = TRUE;
GstCaps *incaps, *outcaps;
trans = GST_BASE_TRANSFORM (gst_pad_get_parent (pad));
otherpad = (pad == trans->srcpad) ? trans->sinkpad : trans->srcpad;
otherpeer = gst_pad_get_peer (otherpad);