v4l2transform: Use looser caps for upstream

When we fixate for upstream, try to not introduce new fields when not
needed. This was imported from videoconvert element.
This commit is contained in:
Nicolas Dufresne 2016-06-06 17:54:10 -04:00
parent 5829f326b0
commit f9e01a53d8

View file

@ -861,6 +861,12 @@ done:
/* fixate remaining fields */
othercaps = gst_caps_fixate (othercaps);
if (direction == GST_PAD_SINK) {
if (gst_caps_is_subset (caps, othercaps)) {
gst_caps_replace (&othercaps, caps);
}
}
return othercaps;
}