diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2020-08-17 11:43:53 +0200 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-08-18 08:11:27 +0000 |
commit | c080ee6dc97b4cf5769876fe92285e5308c4bdc2 (patch) | |
tree | 63465083c47e3c1342a405aac69cafce4bbb998c /gst-libs | |
parent | 5c21736903be91c713bc96ee337f884a70dbab93 (diff) |
libs: surface: egl: guard memory type
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/384>
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapisurface_egl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapisurface_egl.c b/gst-libs/gst/vaapi/gstvaapisurface_egl.c index e311ae9b..362ac168 100644 --- a/gst-libs/gst/vaapi/gstvaapisurface_egl.c +++ b/gst-libs/gst/vaapi/gstvaapisurface_egl.c @@ -133,8 +133,10 @@ do_create_surface_with_egl_image_unlocked (GstVaapiDisplayEGL * display, g_string_append (str, "V4L2 "); if (mem_types & VA_SURFACE_ATTRIB_MEM_TYPE_USER_PTR) g_string_append (str, "PTR "); +#if VA_CHECK_VERSION(1,1,0) if (mem_types & VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2) g_string_append (str, "PRIME_2 "); +#endif GST_ERROR ("missing EGL extensions for memory types: %s", str->str); g_string_free (str, TRUE); |