libs: surface: egl: guard memory type

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/384>
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-08-17 11:43:53 +02:00 committed by GStreamer Merge Bot
parent 5c21736903
commit c080ee6dc9

View file

@ -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);