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:
Norihiro Kamae
2022-06-06 10:20:00 -07:00
committed by Jim
parent e8b2b2092b
commit 1c4bc6e735
3 changed files with 10 additions and 2 deletions
+2
View File
@@ -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);