static GstCaps *
gst_vaapipostproc_fixate_srccaps (GstVaapiPostproc * postproc,
- GstCaps * sinkcaps)
+ GstCaps * sinkcaps, GstCaps * srccaps)
{
GstVideoInfo vi;
GstVideoFormat out_format;
out_format = postproc->format;
srcpad = GST_BASE_TRANSFORM_SRC_PAD (postproc);
- feature = gst_vaapi_find_preferred_caps_feature (srcpad,
- postproc->allowed_srcpad_caps,
+ feature = gst_vaapi_find_preferred_caps_feature (srcpad, srccaps,
(out_format == GST_VIDEO_FORMAT_UNKNOWN) ? &out_format : NULL);
if (feature == GST_VAAPI_CAPS_FEATURE_NOT_NEGOTIATED)
goto done;
}
- if ((outcaps = gst_vaapipostproc_fixate_srccaps (postproc, caps)))
+ if ((outcaps = gst_vaapipostproc_fixate_srccaps (postproc, caps, othercaps)))
gst_caps_replace (&othercaps, outcaps);
done: