From b3886b793544664de93e23286109dfb21ba0f5eb Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 19 Dec 2011 12:33:18 +0100 Subject: [PATCH] basetransform: suggestion compatible with upstream is not much of a suggestion ... in that upstream is already complying with that suggestion. Fixes #666174. --- libs/gst/base/gstbasetransform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index 9f9c935..4408ef2 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -1866,7 +1866,8 @@ gst_base_transform_buffer_alloc (GstPad * pad, guint64 offset, guint size, } else { /* if we have a suggestion, pretend we got these as input */ GST_OBJECT_LOCK (pad); - if (priv->sink_suggest && !gst_caps_is_equal (caps, priv->sink_suggest)) { + if (priv->sink_suggest && + !gst_caps_can_intersect (caps, priv->sink_suggest)) { sink_suggest = gst_caps_ref (priv->sink_suggest); size_suggest = priv->size_suggest; GST_DEBUG_OBJECT (trans, "have suggestion %p %" GST_PTR_FORMAT " size %u", -- 2.7.4