mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
basesrc: Keep downstream caps order when fixating
This allows use to use the first intersecting format prefered by downstream. https://bugzilla.gnome.org/show_bug.cgi?id=617045
This commit is contained in:
parent
0f0a62f316
commit
d979eb3e9e
1 changed files with 1 additions and 1 deletions
|
@ -2614,7 +2614,7 @@ gst_base_src_default_negotiate (GstBaseSrc * basesrc)
|
|||
GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps);
|
||||
if (peercaps) {
|
||||
/* get intersection */
|
||||
caps = gst_caps_intersect (thiscaps, peercaps);
|
||||
caps = gst_caps_intersect_full (peercaps, thiscaps, GST_CAPS_INTERSECT_FIRST);
|
||||
GST_DEBUG_OBJECT (basesrc, "intersect: %" GST_PTR_FORMAT, caps);
|
||||
gst_caps_unref (peercaps);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue