提交 516c0de2 编写于 作者: J jp9000

libobs: Don't signal "source_create" for private sources

上级 4df79147
......@@ -347,10 +347,14 @@ static obs_source_t *obs_source_create_internal(const char *id,
blog(LOG_DEBUG, "%ssource '%s' (%s) created",
private ? "private " : "", name, id);
obs_source_dosignal(source, "source_create", NULL);
source->flags = source->default_flags;
source->enabled = true;
if (!private) {
obs_source_dosignal(source, "source_create", NULL);
}
return source;
fail:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册