basetransform: enable optimisation

When we have the same input as output caps, reuse the input caps object. After
the caps refcounting has been sorted out now, we can finally enable this
optimisation.
This commit is contained in:
Wim Taymans 2009-08-05 15:28:59 +02:00
parent 96e342b686
commit db6ce33e3a

View file

@ -1099,14 +1099,12 @@ gst_base_transform_setcaps (GstPad * pad, GstCaps * caps)
outcaps = caps;
}
#if 0
/* if we have the same caps, we can optimize and reuse the input caps */
if (gst_caps_is_equal (incaps, outcaps)) {
GST_INFO_OBJECT (trans, "reuse caps");
gst_caps_unref (outcaps);
outcaps = gst_caps_ref (incaps);
gst_caps_unref (othercaps);
outcaps = othercaps = gst_caps_ref (incaps);
}
#endif
/* call configure now */
if (!(ret = gst_base_transform_configure_caps (trans, incaps, outcaps)))