From 2da3314534ae9c279c0a647fe4e935104b0882bc Mon Sep 17 00:00:00 2001 From: He Junyan Date: Tue, 21 Jul 2020 22:05:08 +0800 Subject: [PATCH] plugin: util: Add the missing DMA buffer input in template caps. We pass the wrong parameter to gst_vaapi_build_caps_from_formats() and lose the DMA feature in caps. Part-of: --- gst/vaapi/gstvaapipluginutil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c index 0e55640f12..c558138a3b 100644 --- a/gst/vaapi/gstvaapipluginutil.c +++ b/gst/vaapi/gstvaapipluginutil.c @@ -1233,7 +1233,8 @@ gst_vaapi_build_template_caps_by_codec (GstVaapiDisplay * display, } out_caps = gst_vaapi_build_caps_from_formats (supported_fmts, 1, 1, - G_MAXINT, G_MAXINT, TRUE); + G_MAXINT, G_MAXINT, + from_GstVaapiBufferMemoryType (GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF)); out: if (profiles)