mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 02:02:26 +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);
|
GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps);
|
||||||
if (peercaps) {
|
if (peercaps) {
|
||||||
/* get intersection */
|
/* 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_DEBUG_OBJECT (basesrc, "intersect: %" GST_PTR_FORMAT, caps);
|
||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue