summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@intel.com>2020-07-21 22:05:08 +0800
committerHe Junyan <junyan.he@intel.com>2020-07-21 22:07:49 +0800
commit2da3314534ae9c279c0a647fe4e935104b0882bc (patch)
tree662448f01c37e071e2233b3931fe17e962ae8269 /gst
parentf82850c6d387ba8e3a50465f564dffe0106f0523 (diff)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/362>
Diffstat (limited to 'gst')
-rw-r--r--gst/vaapi/gstvaapipluginutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c
index 0e55640f..c558138a 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)