[vlc-commits] glx: add missing surface type check

Rémi Denis-Courmont git at videolan.org
Fri Mar 7 20:40:48 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Mar  7 21:29:07 2014 +0200| [26a023d89a9fb02b351a2a6b5515bba135056e1b] | committer: Rémi Denis-Courmont

glx: add missing surface type check

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=26a023d89a9fb02b351a2a6b5515bba135056e1b
---

 modules/video_output/glx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/glx.c b/modules/video_output/glx.c
index a1ff22d..9fc13f5 100644
--- a/modules/video_output/glx.c
+++ b/modules/video_output/glx.c
@@ -101,7 +101,7 @@ static int Open (vlc_object_t *obj)
 {
     vlc_gl_t *gl = (vlc_gl_t *)obj;
 
-    if (!vlc_xlib_init (obj))
+    if (gl->surface->type != VOUT_WINDOW_TYPE_XID || !vlc_xlib_init (obj))
         return VLC_EGENERIC;
 
     /* Initialize GLX display */



More information about the vlc-commits mailing list