mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-23 13:49:04 -05:00
Prevents a potential cross-lock deadlock. The UI thread would lock the scene's mutex in obs_scene_atomic_update, then the item would lock the graphics context to create a texture. Meanwhile in the video thread, it could lock the graphics context in the render loop, then lock the scene's mutex when rendering. When doing anything graphics-related, the graphics context is always supposed to be locked before the scene's mutex is supposed to be locked (it's designed that way), and the obs_scene_atomic_update would just bypass that.
7.3 KiB
7.3 KiB