mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
vapostproc: Fix early fixation.
First copy missing fields and then fixate all remaining fields. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1169>
This commit is contained in:
parent
e7c8b23b71
commit
52c09778b7
1 changed files with 3 additions and 3 deletions
|
@ -1625,12 +1625,12 @@ gst_va_vpp_fixate_caps (GstBaseTransform * trans, GstPadDirection direction,
|
|||
result = gst_caps_truncate (result);
|
||||
gst_va_vpp_fixate_size (self, direction, caps, result);
|
||||
|
||||
/* fixate remaining fields */
|
||||
result = gst_caps_fixate (result);
|
||||
|
||||
/* some fields might be lost while feature caps conversion */
|
||||
copy_misc_fields_from_input (self, caps, result);
|
||||
|
||||
/* fixate remaining fields */
|
||||
result = gst_caps_fixate (result);
|
||||
|
||||
if (direction == GST_PAD_SINK) {
|
||||
if (gst_caps_is_subset (caps, result)) {
|
||||
gst_caps_replace (&result, caps);
|
||||
|
|
Loading…
Reference in a new issue