mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
libobs: Add obs_get_source_output_flags function
Gets the output flags by its source type.
This commit is contained in:
parent
1a70ae0105
commit
c16f1a7430
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue