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

Thomas Guillem thomas at gllm.fr
Wed Jun 21 10:21:03 CEST 2017


---
 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



More information about the vlc-devel mailing list