[vlc-devel] [PATCH 2/4] egl: set the X11 Display pointer

Rémi Denis-Courmont remi at remlab.net
Wed Jun 21 10:44:56 CEST 2017


Le 21 juin 2017 11:21:02 GMT+03:00, Thomas Guillem <thomas at gllm.fr> a écrit :
>---
> modules/video_output/opengl/egl.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
>diff --git a/modules/video_output/opengl/egl.c
>b/modules/video_output/opengl/egl.c
>index ffa363cb68..ba51c90807 100644
>--- a/modules/video_output/opengl/egl.c
>+++ b/modules/video_output/opengl/egl.c
>@@ -185,7 +185,10 @@ static void Close (vlc_object_t *obj)
>     }
> #ifdef USE_PLATFORM_X11
>     if (sys->x11 != NULL)
>+    {
>         XCloseDisplay(sys->x11);
>+        gl->surface->display.x11.dpy = NULL;
>+    }
> #endif
> #ifdef USE_PLATFORM_WAYLAND
>     if (sys->window != NULL)
>@@ -224,7 +227,7 @@ static int Open (vlc_object_t *obj, const struct
>gl_api *api)
>         goto error;
> 
>     window = &wnd->handle.xid;
>-    sys->x11 = XOpenDisplay(wnd->display.x11.name);
>+    sys->x11 = wnd->display.x11.dpy =
>XOpenDisplay(wnd->display.x11.name);
>     if (sys->x11 == NULL)
>         goto error;
> 
>-- 
>2.11.0
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

EGL is not allowed to write the window. That's wrong in too many ways.
-- 
Rémi Denis-Courmont
Typed on an inconvenient virtual keyboard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170621/3bd44927/attachment.html>


More information about the vlc-devel mailing list