mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
basetransform: Retain caps order when getting caps
If the element gave us caps in a specific order, let's retain that by intersecting against the template but retaining the order given by the element. https://bugzilla.gnome.org/show_bug.cgi?id=617045
This commit is contained in:
parent
0e1a561467
commit
0f0a62f316
1 changed files with 2 additions and 1 deletions
|
@ -686,7 +686,8 @@ gst_base_transform_getcaps (GstPad * pad)
|
|||
/* and filter against the template of this pad */
|
||||
templ = gst_pad_get_pad_template_caps (pad);
|
||||
GST_DEBUG_OBJECT (pad, "our template %" GST_PTR_FORMAT, templ);
|
||||
temp = gst_caps_intersect (caps, templ);
|
||||
/* We keep the caps sorted like the returned caps */
|
||||
temp = gst_caps_intersect_full (caps, templ, GST_CAPS_INTERSECT_FIRST);
|
||||
GST_DEBUG_OBJECT (pad, "intersected %" GST_PTR_FORMAT, temp);
|
||||
gst_caps_unref (caps);
|
||||
/* this is what we can do */
|
||||
|
|
Loading…
Reference in a new issue