<html><head></head><body>How do you know that eglGetDisplay expects Wayland?? AFAIK, on Unices, it expects a Xlib Display pointer.<br><br><div class="gmail_quote">Le 15 juin 2018 15:53:17 GMT+03:00, Thomas Guillem <thomas@gllm.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">If the EGL_EXT_platform_wayland extension is not available.<br>---<br> modules/video_output/opengl/egl.c | 17 +++++++++++------<br> 1 file changed, 11 insertions(+), 6 deletions(-)<br><br>diff --git a/modules/video_output/opengl/egl.c b/modules/video_output/opengl/egl.c<br>index 3cfc3f41c3..b30b10af31 100644<br>--- a/modules/video_output/opengl/egl.c<br>+++ b/modules/video_output/opengl/egl.c<br>@@ -267,18 +267,23 @@ static int Open (vlc_object_t *obj, const struct gl_api *api)<br>         goto error;<br> <br> # ifdef EGL_EXT_platform_wayland<br>-    if (!CheckClientExt("EGL_EXT_platform_wayland"))<br>-        goto error;<br>-<br>     /* Resize() should be called with the proper size before Swap() */<br>     window = wl_egl_window_create(wnd->handle.wl, 1, 1);<br>     if (window == NULL)<br>         goto error;<br>     sys->window = window;<br> <br>-    sys->display = GetDisplayEXT(EGL_PLATFORM_WAYLAND_EXT, wnd->display.wl,<br>-                                 NULL);<br>-    createSurface = CreateWindowSurfaceEXT;<br>+    if (!CheckClientExt("EGL_EXT_platform_wayland"))<br>+    {<br>+        sys->display = eglGetDisplay(wnd->display.wl);<br>+        window = &sys->window;<br>+    }<br>+    else<br>+    {<br>+        sys->display = GetDisplayEXT(EGL_PLATFORM_WAYLAND_EXT, wnd->display.wl,<br>+                                     NULL);<br>+        createSurface = CreateWindowSurfaceEXT;<br>+    }<br> <br> # endif<br> </pre></blockquote></div><br>
-- <br>
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>