mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
vaapi: Add new dmabuf mem type when building caps
Media-driver will return dmabuf mem type GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF2 on the latest platform like Gen12. To enable build caps using dmabuf, need to add the check for this type at gst_vaapi_build_caps_from_format. This patch is a portion from Junyan.He@intel.com https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/393 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1287>
This commit is contained in:
parent
d8a477338f
commit
51f92fd15f
1 changed files with 3 additions and 1 deletions
|
@ -1120,7 +1120,9 @@ gst_vaapi_build_caps_from_formats (GArray * formats, gint min_width,
|
|||
gst_caps_features_from_string (GST_CAPS_FEATURE_MEMORY_VAAPI_SURFACE));
|
||||
|
||||
if (gst_vaapi_mem_type_supports (mem_types,
|
||||
GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF)) {
|
||||
GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF) ||
|
||||
gst_vaapi_mem_type_supports (mem_types,
|
||||
GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF2)) {
|
||||
dma_caps = gst_caps_copy (raw_caps);
|
||||
gst_caps_set_features_simple (dma_caps,
|
||||
gst_caps_features_from_string (GST_CAPS_FEATURE_MEMORY_DMABUF));
|
||||
|
|
Loading…
Reference in a new issue