From c080ee6dc97b4cf5769876fe92285e5308c4bdc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 17 Aug 2020 11:43:53 +0200 Subject: [PATCH] libs: surface: egl: guard memory type Part-of: --- gst-libs/gst/vaapi/gstvaapisurface_egl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/vaapi/gstvaapisurface_egl.c b/gst-libs/gst/vaapi/gstvaapisurface_egl.c index e311ae9bc9..362ac168c0 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);