diff options
author | He Junyan <junyan.he@intel.com> | 2021-08-16 13:32:51 +0800 |
---|---|---|
committer | He Junyan <junyan.he@intel.com> | 2021-08-16 16:24:14 +0800 |
commit | d14e8055ad57f957cff911c3e2640b418c30c1b2 (patch) | |
tree | b59a52b9f2680dad8b9faf9bca305f472d628739 /sys/va/gstvacaps.c | |
parent | a917648be3d980a3845ed227322a74300632643b (diff) | |
download | gstreamer-plugins-bad-d14e8055ad57f957cff911c3e2640b418c30c1b2.tar.gz |
va: Use MEMORY_DMABUF definition to replace "memory:DMABuf" strings.
GST_CAPS_FEATURE_MEMORY_DMABUF is already a common definition, we should
just use it rather than use the "memory:DMABuf" strings by ourselves.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2466>
Diffstat (limited to 'sys/va/gstvacaps.c')
-rw-r--r-- | sys/va/gstvacaps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/va/gstvacaps.c b/sys/va/gstvacaps.c index 181c8d7a3..b0bfa8074 100644 --- a/sys/va/gstvacaps.c +++ b/sys/va/gstvacaps.c @@ -216,7 +216,7 @@ gst_va_create_raw_caps_from_config (GstVaDisplay * display, VAConfigID config) if (mem_type & VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME || mem_type & VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2) { feature_caps = gst_caps_copy (base_caps); - features = gst_caps_features_from_string ("memory:DMABuf"); + features = gst_caps_features_from_string (GST_CAPS_FEATURE_MEMORY_DMABUF); gst_caps_set_features_simple (feature_caps, features); caps = gst_caps_merge (caps, feature_caps); } |