From 52c09778b79afdb38a88fb85c1b8d9a4eeb74815 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Sat, 16 Oct 2021 10:51:57 +0200 Subject: [PATCH] vapostproc: Fix early fixation. First copy missing fields and then fixate all remaining fields. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvavpp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvavpp.c b/subprojects/gst-plugins-bad/sys/va/gstvavpp.c index 70425bc..19ef2b1 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvavpp.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvavpp.c @@ -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); -- 2.7.4