[vlc-commits] commit: GLX: uses Xlib, needs XInitThreads() ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Mar 3 20:35:47 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Mar  3 21:33:06 2010 +0200| [c3ad841b1255b6d2de96bfa0a7f1fcad81909a28] | committer: Rémi Denis-Courmont 

GLX: uses Xlib, needs XInitThreads()

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

 modules/video_output/xcb/glx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index cbb1fe5..1b80b3d 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -201,6 +201,9 @@ static int CreateWindow (vout_display_t *vd, xcb_connection_t *conn,
  */
 static int Open (vlc_object_t *obj)
 {
+    if (!XInitThreads ())
+        return VLC_EGENERIC;
+
     vout_display_t *vd = (vout_display_t *)obj;
     vout_display_sys_t *sys = malloc (sizeof (*sys));
 



More information about the vlc-commits mailing list