When SW decoder request buffer to write to avoid additional memory copy,
it is NOT ok when SW decoder and HW renering have different stride for
the same video frame size (direct_rendering=0).
if (!gst_vaapi_uploader_ensure_caps(sink->uploader, caps, NULL))
return GST_FLOW_NOT_SUPPORTED;
+ if (!gst_vaapi_uploader_has_direct_rendering(sink->uploader)) {
+ return GST_FLOW_OK;
+ }
+
buf = gst_vaapi_uploader_get_buffer(sink->uploader);
if (!buf) {
GST_WARNING("failed to allocate resources for raw YUV buffer");