summaryrefslogtreecommitdiff
path: root/gst/bayer
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2012-01-25 16:57:52 +0100
committerOlivier CrĂȘte <olivier.crete@collabora.com>2012-01-25 18:04:55 +0100
commit4878946130a113c212acb382496a71232d0068b0 (patch)
tree11ee44d237761e8baadd43ae90017735dd5eefd3 /gst/bayer
parent73d57f1848ea2dd2caffe243b76dc60ace54c9cd (diff)
downloadgstreamer-plugins-bad-4878946130a113c212acb382496a71232d0068b0.tar.gz
bayer: Intersect transformed caps with filter
Diffstat (limited to 'gst/bayer')
-rw-r--r--gst/bayer/gstrgb2bayer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/bayer/gstrgb2bayer.c b/gst/bayer/gstrgb2bayer.c
index 9213e5e1d..4f2fc7b83 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;
}