mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-30 09:01:59 -05:00
The function InitBasicConfigDefaults2's purpose is to set up encoder- related settings for a profile, which requires all available encoders to have been discovered first. As encoders are added by runtime modules, this also means that discovery needs to be delayed until after modules have been loaded, but modules themselves require a valid profile to exist and be loaded. This leads to the requirement of profiles needing to exist in a half-initialized state when modules are loaded and only becoming fully initialized after that. This distinction is not necessary after the initial launch of obs-studio because runtime plugins are not hot-loadable, so the update can happen unconditionally at any time a plugin is changed, which implicitly couples every call to ActivateProfile with a call to UpdateProfileEncoders.
304 KiB
304 KiB