[0.11] gst-plugins-bad: bayer: Intersect transformed caps with filter

Olivier Crête tester at kemper.freedesktop.org
Wed Jan 25 09:05:45 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: 4878946130a113c212acb382496a71232d0068b0
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=4878946130a113c212acb382496a71232d0068b0

Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Wed Jan 25 16:57:52 2012 +0100

bayer: Intersect transformed caps with filter

---

 gst/bayer/gstrgb2bayer.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/gst/bayer/gstrgb2bayer.c b/gst/bayer/gstrgb2bayer.c
index 9213e5e..4f2fc7b 100644
--- a/gst/bayer/gstrgb2bayer.c
+++ b/gst/bayer/gstrgb2bayer.c
@@ -154,6 +154,12 @@ gst_rgb2bayer_transform_caps (GstBaseTransform * trans,
   GST_DEBUG_OBJECT (trans, "transforming caps (into) %" GST_PTR_FORMAT,
       newcaps);
 
+  if (filter) {
+    GstCaps *tmpcaps = newcaps;
+    newcaps = gst_caps_intersect (newcaps, filter);
+    gst_caps_unref (tmpcaps);
+  }
+
   return newcaps;
 }
 



More information about the gstreamer-commits mailing list