vapostproc: Fix early fixation.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 16 Oct 2021 08:51:57 +0000 (10:51 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 17 Oct 2021 11:24:26 +0000 (11:24 +0000)
First copy missing fields and then fixate all remaining fields.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1169>

subprojects/gst-plugins-bad/sys/va/gstvavpp.c

index 70425bc..19ef2b1 100644 (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);