mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-12 17:58:29 +12:00
Set init var
This commit is contained in:
parent
d00222be11
commit
307af1297b
1 changed files with 2 additions and 0 deletions
|
@ -93,9 +93,11 @@ namespace CameraManager
|
||||||
std::scoped_lock lock(s_mutex);
|
std::scoped_lock lock(s_mutex);
|
||||||
if (s_initialized)
|
if (s_initialized)
|
||||||
return;
|
return;
|
||||||
|
s_initialized = true;
|
||||||
s_mutex.unlock();
|
s_mutex.unlock();
|
||||||
s_running = true;
|
s_running = true;
|
||||||
s_captureThread = std::thread(&CaptureWorker);
|
s_captureThread = std::thread(&CaptureWorker);
|
||||||
|
|
||||||
s_ctx = Cap_createContext();
|
s_ctx = Cap_createContext();
|
||||||
|
|
||||||
const auto uniqueId = GetConfig().camera_id.GetValue();
|
const auto uniqueId = GetConfig().camera_id.GetValue();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue