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:
Edward Hervey 2010-04-19 20:39:53 +02:00 committed by Thiago Santos
parent 0f0a62f316
commit d979eb3e9e

View file

@ -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 {