[vlc-devel] [PATCH 3/4] glx: set the X11 Display pointer

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


Le 21 juin 2017 11:21:03 GMT+03:00, Thomas Guillem <thomas at gllm.fr> a écrit :
>---
> modules/video_output/glx.c | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/modules/video_output/glx.c b/modules/video_output/glx.c
>index 0f76cd405d..880eb144b9 100644
>--- a/modules/video_output/glx.c
>+++ b/modules/video_output/glx.c
>@@ -237,6 +237,7 @@ static int Open (vlc_object_t *obj)
>     ReleaseCurrent (gl);
> #endif
> 
>+    gl->surface->display.x11.dpy = dpy;
>     return VLC_SUCCESS;
> 
> error:
>@@ -254,6 +255,7 @@ static void Close (vlc_object_t *obj)
>     glXDestroyContext (dpy, sys->ctx);
>     glXDestroyWindow (dpy, sys->win);
>     XCloseDisplay (dpy);
>+    gl->surface->display.x11.dpy = NULL;
>     free (sys);
> }
> 
>-- 
>2.11.0
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

Nack.
-- 
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/cd9b1833/attachment.html>


More information about the vlc-devel mailing list