mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
96e342b686
commit
db6ce33e3a
1 changed files with 2 additions and 4 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue