From: Sebastian Dröge Date: Tue, 17 Dec 2013 09:23:15 +0000 (+0100) Subject: decklinksink: Give preference to the order of the filter caps when querying caps X-Git-Tag: 1.19.3~507^2~12850 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46b62c72d873fdaa51d7c69ad008962e00d3df0f;p=platform%2Fupstream%2Fgstreamer.git decklinksink: Give preference to the order of the filter caps when querying caps --- diff --git a/sys/decklink/gstdecklinksink.cpp b/sys/decklink/gstdecklinksink.cpp index afbd304..7f0ec61 100644 --- a/sys/decklink/gstdecklinksink.cpp +++ b/sys/decklink/gstdecklinksink.cpp @@ -566,7 +566,7 @@ gst_decklink_sink_videosink_query (GstPad * pad, GstObject * parent, mode_caps = gst_decklink_mode_get_caps (decklinksink->mode); gst_query_parse_caps (query, &filter); if (filter) { - caps = gst_caps_intersect (mode_caps, filter); + caps = gst_caps_intersect_full (filter, mode_caps, GST_CAPS_INTERSECT_FIRST); gst_caps_unref (mode_caps); } else { caps = mode_caps;