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:
Víctor Manuel Jáquez Leal 2021-10-16 10:51:57 +02:00 committed by GStreamer Marge Bot
parent e7c8b23b71
commit 52c09778b7

View file

@ -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);