This functionality can now be handled automatically because locale can now be freed seaparately from obs_module_unload with obs_module_free_locale, which is called automatically when the module is being freed.
17 lines
472 B
C
17 lines
472 B
C
#include <obs-module.h>
|
|
|
|
OBS_DECLARE_MODULE()
|
|
OBS_MODULE_USE_DEFAULT_LOCALE("mac-capture", "en-US")
|
|
|
|
extern struct obs_source_info coreaudio_input_capture_info;
|
|
extern struct obs_source_info coreaudio_output_capture_info;
|
|
extern struct obs_source_info display_capture_info;
|
|
|
|
bool obs_module_load(void)
|
|
{
|
|
obs_register_source(&coreaudio_input_capture_info);
|
|
obs_register_source(&coreaudio_output_capture_info);
|
|
obs_register_source(&display_capture_info);
|
|
return true;
|
|
}
|