gstreamer: basesrc: Keep downstream caps order when fixating

Thiago Sousa Santos thiagoss at kemper.freedesktop.org
Thu Mar 24 08:56:23 PDT 2011


Module: gstreamer
Branch: master
Commit: d979eb3e9e8590da66f8948273ba276e700b97fc
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=d979eb3e9e8590da66f8948273ba276e700b97fc

Author: Edward Hervey <bilboed at bilboed.com>
Date:   Mon Apr 19 20:39:53 2010 +0200

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 files changed, 1 insertions(+), 1 deletions(-)

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 {



More information about the gstreamer-commits mailing list