From 00e6f6e023549f6acfb5415c319edaeadb32945e Mon Sep 17 00:00:00 2001 From: wangshaohui Date: Mon, 6 Dec 2021 13:43:28 +0800 Subject: [PATCH] libobs: Fix missing return when loading non-OBS DLL --- libobs/obs-module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libobs/obs-module.c b/libobs/obs-module.c index 88a376425..1fc59f418 100644 --- a/libobs/obs-module.c +++ b/libobs/obs-module.c @@ -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) {