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:
parent
5829f326b0
commit
f9e01a53d8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user