mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
libs: surface: egl: guard memory type
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/384>
This commit is contained in:
parent
5c21736903
commit
c080ee6dc9
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue