From a6c1cbe69ab75be0c9c24f2007f2de4e19ad0604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 3 May 2011 17:26:53 +0200 Subject: [PATCH] basetransform: Prefer caps order given by the subclass of the template caps order --- libs/gst/base/gstbasetransform.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index d25b7deb83..4c4fdbec50 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -851,7 +851,9 @@ gst_base_transform_find_transform (GstBaseTransform * trans, GstPad * pad, GST_DEBUG_OBJECT (trans, "intersecting against padtemplate %" GST_PTR_FORMAT, templ_caps); - intersect = gst_caps_intersect (othercaps, templ_caps); + intersect = + gst_caps_intersect_full (othercaps, templ_caps, + GST_CAPS_INTERSECT_FIRST); gst_caps_unref (othercaps); othercaps = intersect;