提交 57edd5fb 编写于 作者: J jp9000

libobs: Make minor adjustment to module logging

上级 17fa0041
......@@ -80,6 +80,8 @@ int obs_open_module(obs_module_t **module, const char *path,
if (!module || !path || !obs)
return MODULE_ERROR;
blog(LOG_INFO, "---------------------------------");
mod.module = os_dlopen(path);
if (!mod.module) {
blog(LOG_WARNING, "Module '%s' not found", path);
......@@ -98,8 +100,7 @@ int obs_open_module(obs_module_t **module, const char *path,
mod.next = obs->first_module;
if (mod.file) {
blog(LOG_INFO, "---------------------------------\n"
"Loading module: %s", mod.file);
blog(LOG_INFO, "Loading module: %s", mod.file);
}
*module = bmemdup(&mod, sizeof(mod));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册