From d979eb3e9e8590da66f8948273ba276e700b97fc Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 19 Apr 2010 20:39:53 +0200 Subject: [PATCH] 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 --- libs/gst/base/gstbasesrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index c450223..f673355 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -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 { -- 2.7.4