mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
4fe3c47216
- Made it so that when a source is added or removed from a scene it will add a reference to sourceSceneRefs (std::unordered_map). Each source adds a reference to that every time they are added to a scene, and releases a reference from it when they are removed from a scene. When the value reaches 0, the source is no longer in any scenes, and is then marked for removal and destroyed. Before, I was using the source internal reference counter, which is a really bad thing to do because I don't know what might actually be referencing it. So using a separate discrete reference counter for the number of scenes it's in is better in this case. |
||
---|---|---|
.. | ||
forms | ||
CMakeLists.txt | ||
makefile.am | ||
obs-app.cpp | ||
obs-app.hpp | ||
platform-osx.mm | ||
platform-windows.cpp | ||
platform-x11.cpp | ||
platform.hpp | ||
settings-basic-general.cpp | ||
settings-basic-video.cpp | ||
settings-basic.cpp | ||
settings-basic.hpp | ||
settings.hpp | ||
window-basic-main.cpp | ||
window-basic-main.hpp | ||
window-basic-settings.cpp | ||
window-basic-settings.hpp | ||
window-namedialog.cpp | ||
window-namedialog.hpp | ||
wx-subclass.cpp | ||
wx-subclass.hpp | ||
wx-wrappers.cpp | ||
wx-wrappers.hpp |