<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
</head>
<body><div><br></div>
<div>On Fri, Jun 15, 2018, at 15:54, Rémi Denis-Courmont wrote:<br></div>
<blockquote type="cite"><div>How do you know that eglGetDisplay expects Wayland?? AFAIK, on Unices, it expects a Xlib Display pointer.<br></div>
</blockquote><div><br></div>
<div>I don't, that's why I proposed to the ML.<br></div>
<div>Apparently, it can be autodetected, cf. here <a href="https://bugs.freedesktop.org/show_bug.cgi?id=103757">https://bugs.freedesktop.org/show_bug.cgi?id=103757</a><br></div>
<div>But it's still recommended to use the extension, so we can drop this patch.<br></div>
<div><br></div>
<blockquote type="cite"><div><br></div>
<div defang_data-gmailquote="yes"><div>Le 15 juin 2018 15:53:17 GMT+03:00, Thomas Guillem <thomas@gllm.fr> a écrit :<br></div>
<blockquote defang_data-gmailquote="yes" style="margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><pre><div>If the EGL_EXT_platform_wayland extension is not available.<br></div>
<div>---<br></div>
<div> modules/video_output/opengl/egl.c | 17 +++++++++++------<br></div>
<div> 1 file changed, 11 insertions(+), 6 deletions(-)<br></div>
<div><br></div>
<div>diff --git a/modules/video_output/opengl/egl.c b/modules/video_output/opengl/egl.c<br></div>
<div>index 3cfc3f41c3..b30b10af31 100644<br></div>
<div>--- a/modules/video_output/opengl/egl.c<br></div>
<div>+++ b/modules/video_output/opengl/egl.c<br></div>
<div>@@ -267,18 +267,23 @@ static int Open (vlc_object_t *obj, const struct gl_api *api)<br></div>
<div>         goto error;<br></div>
<div> <br></div>
<div> # ifdef EGL_EXT_platform_wayland<br></div>
<div>-    if (!CheckClientExt("EGL_EXT_platform_wayland"))<br></div>
<div>-        goto error;<br></div>
<div>-<br></div>
<div>     /* Resize() should be called with the proper size before Swap() */<br></div>
<div>     window = wl_egl_window_create(wnd->handle.wl, 1, 1);<br></div>
<div>     if (window == NULL)<br></div>
<div>         goto error;<br></div>
<div>     sys->window = window;<br></div>
<div> <br></div>
<div>-    sys->display = GetDisplayEXT(EGL_PLATFORM_WAYLAND_EXT, wnd->display.wl,<br></div>
<div>-                                 NULL);<br></div>
<div>-    createSurface = CreateWindowSurfaceEXT;<br></div>
<div>+    if (!CheckClientExt("EGL_EXT_platform_wayland"))<br></div>
<div>+    {<br></div>
<div>+        sys->display = eglGetDisplay(wnd->display.wl);<br></div>
<div>+        window = &sys->window;<br></div>
<div>+    }<br></div>
<div>+    else<br></div>
<div>+    {<br></div>
<div>+        sys->display = GetDisplayEXT(EGL_PLATFORM_WAYLAND_EXT, wnd->display.wl,<br></div>
<div>+                                     NULL);<br></div>
<div>+        createSurface = CreateWindowSurfaceEXT;<br></div>
<div>+    }<br></div>
<div> <br></div>
<div> # endif <br></div>
</pre></blockquote></div>
<div><br></div>
<div>--<br></div>
<div> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté. <br></div>
<div><u>_______________________________________________</u><br></div>
<div>vlc-devel mailing list<br></div>
<div>To unsubscribe or modify your subscription options:<br></div>
<div><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div>
</blockquote><div><br></div>
</body>
</html>