提交 c16f1a74 编写于 作者: J jp9000

libobs: Add obs_get_source_output_flags function

Gets the output flags by its source type.
上级 1a70ae01
......@@ -409,6 +409,12 @@ uint32_t obs_source_get_output_flags(const obs_source_t *source)
return source ? source->info.output_flags : 0;
}
uint32_t obs_get_source_output_flags(enum obs_source_type type, const char *id)
{
const struct obs_source_info *info = get_source_info(type, id);
return info ? info->output_flags : 0;
}
static void obs_source_deferred_update(obs_source_t *source)
{
if (source->context.data && source->info.update)
......
......@@ -654,6 +654,10 @@ EXPORT bool obs_source_removed(const obs_source_t *source);
*/
EXPORT uint32_t obs_source_get_output_flags(const obs_source_t *source);
/** Returns capability flags of a source type */
EXPORT uint32_t obs_get_source_output_flags(enum obs_source_type type,
const char *id);
/** Gets the default settings for a source type */
EXPORT obs_data_t *obs_get_source_defaults(enum obs_source_type type,
const char *id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册