mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 00:32:43 +00:00
bayer: Intersect transformed caps with filter
This commit is contained in:
parent
73d57f1848
commit
4878946130
1 changed files with 6 additions and 0 deletions
|
@ -154,6 +154,12 @@ gst_rgb2bayer_transform_caps (GstBaseTransform * trans,
|
||||||
GST_DEBUG_OBJECT (trans, "transforming caps (into) %" GST_PTR_FORMAT,
|
GST_DEBUG_OBJECT (trans, "transforming caps (into) %" GST_PTR_FORMAT,
|
||||||
newcaps);
|
newcaps);
|
||||||
|
|
||||||
|
if (filter) {
|
||||||
|
GstCaps *tmpcaps = newcaps;
|
||||||
|
newcaps = gst_caps_intersect (newcaps, filter);
|
||||||
|
gst_caps_unref (tmpcaps);
|
||||||
|
}
|
||||||
|
|
||||||
return newcaps;
|
return newcaps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue