basetransform: Only use the cached transform on strictly equal caps

https://bugzilla.gnome.org/show_bug.cgi?id=663333
This commit is contained in:
Sjoerd Simons 2011-11-03 15:36:59 +00:00
parent 57074fc025
commit e97eeb5cd4

View file

@ -709,7 +709,7 @@ gst_base_transform_getcaps (GstPad * pad)
peercaps = gst_pad_peer_get_caps_reffed (otherpad);
GST_OBJECT_LOCK (trans);
samecaps = (peercaps && trans->priv->cached_peer_caps[cache_index]
&& gst_caps_is_equal (peercaps,
&& gst_caps_is_strictly_equal (peercaps,
trans->priv->cached_peer_caps[cache_index]));
if (!samecaps) {
if (trans->priv->cached_peer_caps[cache_index]) {