Skip to content

Commit

Permalink
linux-capture: Ensure locks are initialized
Browse files Browse the repository at this point in the history
In case no-one else initializes X11 locks do this as part of loading the
module.

Fixes obsproject#3479
  • Loading branch information
kkartaltepe authored and tommyvct committed May 22, 2021
1 parent cb49bee commit 519def5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/linux-capture/xcompcap-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ bool XCompcapMain::init()
return false;
}

XInitThreads();

int eventBase, errorBase;
if (!XCompositeQueryExtension(xdisp, &eventBase, &errorBase)) {
blog(LOG_ERROR, "Xcomposite extension not supported");
Expand Down

0 comments on commit 519def5

Please sign in to comment.