<html><head></head><body><div class="gmail_quote">Le 21 juin 2017 11:21:02 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">---<br /> modules/video_output/opengl/egl.c | 5 ++++-<br /> 1 file changed, 4 insertions(+), 1 deletion(-)<br /><br />diff --git a/modules/video_output/opengl/egl.c b/modules/video_output/opengl/egl.c<br />index ffa363cb68..ba51c90807 100644<br />--- a/modules/video_output/opengl/egl.c<br />+++ b/modules/video_output/opengl/egl.c<br />@@ -185,7 +185,10 @@ static void Close (vlc_object_t *obj)<br /> }<br /> #ifdef USE_PLATFORM_X11<br /> if (sys->x11 != NULL)<br />+ {<br /> XCloseDisplay(sys->x11);<br />+ gl->surface->display.x11.dpy = NULL;<br />+ }<br /> #endif<br /> #ifdef USE_PLATFORM_WAYLAND<br /> if (sys->window != NULL)<br />@@ -224,7 +227,7 @@ static int Open (vlc_object_t *obj, const struct gl_api *api)<br /> goto error;<br /> <br /> window = &wnd->handle.xid;<br />- sys->x11 = XOpenDisplay(wnd-><a href="http://display.x11.name">display.x11.name</a>);<br />+ sys->x11 = wnd->display.x11.dpy = XOpenDisplay(wnd-><a href="http://display.x11.name">display.x11.name</a>);<br /> if (sys->x11 == NULL)<br /> goto error;<br /> </pre></blockquote></div><br clear="all">EGL is not allowed to write the window. That's wrong in too many ways.<br>
-- <br>
Rémi Denis-Courmont<br>
Typed on an inconvenient virtual keyboard</body></html>