]> git.sesse.net Git - vlc/commit
UIs: call XInitThreads if using X11
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 21 Feb 2010 08:58:10 +0000 (10:58 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 21 Feb 2010 08:58:10 +0000 (10:58 +0200)
commite056b5805aabed93d484dd92131463b760261b89
treecf974fc1c6c1664793ae9c2637ec6edbb8f66d17
parenta5a49b4eec9707ff9fe66ffd54c33b618f4d6dd8
UIs: call XInitThreads if using X11

This is needed to protect the Xlib internal state. Xlib may still be
used by user interface thread, the GLX video output thread(s) and
PulseAudio -audio thread- while it initializes.

Fortunately, we do not need to lock X11 displays as every thread uses
its own. Hopefully Xlib is not buggy in that respect, but I am not so
sure :(

This should fix LP #419915.
modules/gui/hildon/maemo.c
modules/gui/qt4/qt4.cpp