diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-08-05 15:28:59 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-08-06 10:53:07 +0200 |
commit | db6ce33e3a1eba31e7fd74ebc3e2fb85136affec (patch) | |
tree | 43f3ddc231992afb5a9ed1df292a09e477577764 /libs | |
parent | 96e342b6868da04ff43d85fe635bf61686b385e3 (diff) |
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.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gst/base/gstbasetransform.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index 57a297811d..2458663d24 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -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))) |