libobs: Fix missing return when loading non-OBS DLL

This commit is contained in:
wangshaohui 2021-12-06 13:43:28 +08:00 committed by Richard Stanway
parent 61ca8d47aa
commit 00e6f6e023

View file

@ -278,9 +278,11 @@ static void load_all_callback(void *param, const struct obs_module_info *info)
{
obs_module_t *module;
if (!os_is_obs_plugin(info->bin_path))
if (!os_is_obs_plugin(info->bin_path)) {
blog(LOG_WARNING, "Skipping module '%s', not an OBS plugin",
info->bin_path);
return;
}
int code = obs_open_module(&module, info->bin_path, info->data_path);
if (code != MODULE_SUCCESS) {