mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-07 03:53:38 +00:00
libobs: Fix missing return when loading non-OBS DLL
This commit is contained in:
parent
61ca8d47aa
commit
00e6f6e023
|
@ -278,9 +278,11 @@ static void load_all_callback(void *param, const struct obs_module_info *info)
|
||||||
{
|
{
|
||||||
obs_module_t *module;
|
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",
|
blog(LOG_WARNING, "Skipping module '%s', not an OBS plugin",
|
||||||
info->bin_path);
|
info->bin_path);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int code = obs_open_module(&module, info->bin_path, info->data_path);
|
int code = obs_open_module(&module, info->bin_path, info->data_path);
|
||||||
if (code != MODULE_SUCCESS) {
|
if (code != MODULE_SUCCESS) {
|
||||||
|
|
Loading…
Reference in a new issue