mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Fix multithread-unsafe GetCurrentScene
The function `OBSBasic::GetCurrentScene()` is also called from the graphics thread and access to a QListWidget object, which is not multithread-safe.
This commit is contained in:
@@ -332,6 +332,8 @@ private:
|
||||
QScopedPointer<QThread> patronJsonThread;
|
||||
std::string patronJson;
|
||||
|
||||
std::atomic<obs_scene_t *> currentScene = nullptr;
|
||||
|
||||
void UpdateMultiviewProjectorMenu();
|
||||
|
||||
void DrawBackdrop(float cx, float cy);
|
||||
|
||||
Reference in New Issue
Block a user