]> git.sesse.net Git - vlc/commitdiff
Mozilla: use --no-xlib
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 2 Jun 2010 18:36:53 +0000 (21:36 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 2 Jun 2010 18:36:53 +0000 (21:36 +0300)
It will be hard to convince all Mozilla plugins-capable browsers to
call XInitThreads() early enough, if it ever happens. In the mean time,
make sure we use only pure XCB and avoid Xlib in VLC plugins.

Note: I did not check that the web plugins itself was not using Xlib
outside the main Mozilla browser thread.

This should fix #3662. We loose GLX and PulseAudio inside Mozilla.

projects/mozilla/vlcplugin.cpp

index 2a15a2a127929237bf325a0131e490d946649703..93bd4309a5fbc1edebcb8170743780082f5f0d38 100644 (file)
@@ -361,6 +361,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
     ppsz_argv[ppsz_argc++] = "--no-media-library";
     ppsz_argv[ppsz_argc++] = "--intf=dummy";
     ppsz_argv[ppsz_argc++] = "--no-video-title-show";
+    ppsz_argv[ppsz_args++] = "--no-xlib";
 
     const char *progid = NULL;