GNOME Bugzilla – Bug 790493
vaapi should eglGetPlatformDisplay to eglGetDisplay
Last modified: 2018-01-16 18:06:23 UTC
eglGetDisplay() is currently broken in mesa[1] for wayland. Using eglGetDisplay() is rather fragile anyway ant it is recommended to use eglGetPlatformDisplay() instead if possible. [1] https://bugs.freedesktop.org/show_bug.cgi?id=103757
Oh look! a helper! :) https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst-libs/gst/gl/egl/gstgldisplay_egl.c#n99
Created attachment 366725 [details] [review] libs: egl: utils: use eglGetPlatformDisplay() eglGetDisplay() is currently broken in Mesa for Wayland. Also using eglGetDisplay() is rather fragile, and it is recommended to use eglGetPlatformDisplay() when possible. In order to do that, this patch uses the helper in GstGL. If gstreamer-vaapi is not compiled with GstGL support, eglGetDisplay() will be used.
Attachment 366725 [details] pushed as 7e05160 - libs: egl: utils: use eglGetPlatformDisplay()