提交 e14050bb 编写于 作者: J jp9000

libobs: Fix crash if missing plugin for a source

I forgot that the info variable may be intentionally NULL if a source's
plugin in missing.
上级 44b8c24f
......@@ -191,7 +191,7 @@ obs_source_t *obs_source_create(enum obs_source_type type, const char *id,
blog(LOG_INFO, "source '%s' (%s) created", name, id);
obs_source_dosignal(source, "source_create", NULL);
if (info->type == OBS_SOURCE_TYPE_TRANSITION)
if (info && info->type == OBS_SOURCE_TYPE_TRANSITION)
os_atomic_inc_long(&obs->data.active_transitions);
return source;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册