plugin: util: Add the missing DMA buffer input in template caps.
authorHe Junyan <junyan.he@intel.com>
Tue, 21 Jul 2020 14:05:08 +0000 (22:05 +0800)
committerHe Junyan <junyan.he@intel.com>
Tue, 21 Jul 2020 14:07:49 +0000 (22:07 +0800)
We pass the wrong parameter to gst_vaapi_build_caps_from_formats()
and lose the DMA feature in caps.

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

gst/vaapi/gstvaapipluginutil.c

index 0e55640..c558138 100644 (file)
@@ -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)