mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 15:36:42 +00:00
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
1 changed files with 6 additions and 0 deletions
|
@ -861,6 +861,12 @@ done:
|
||||||
/* fixate remaining fields */
|
/* fixate remaining fields */
|
||||||
othercaps = gst_caps_fixate (othercaps);
|
othercaps = gst_caps_fixate (othercaps);
|
||||||
|
|
||||||
|
if (direction == GST_PAD_SINK) {
|
||||||
|
if (gst_caps_is_subset (caps, othercaps)) {
|
||||||
|
gst_caps_replace (&othercaps, caps);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return othercaps;
|
return othercaps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue