libobs: Add obs_source_is_scene()
This commit is contained in:
parent
33c5563c1e
commit
d332a8ea76
@ -3349,6 +3349,11 @@ bool obs_source_is_group(const obs_source_t *source)
|
||||
return source && strcmp(source->info.id, group_info.id) == 0;
|
||||
}
|
||||
|
||||
bool obs_source_is_scene(const obs_source_t *source)
|
||||
{
|
||||
return source && strcmp(source->info.id, scene_info.id) == 0;
|
||||
}
|
||||
|
||||
bool obs_scene_is_group(const obs_scene_t *scene)
|
||||
{
|
||||
return scene ? scene->is_group : false;
|
||||
|
@ -1591,6 +1591,8 @@ obs_scene_reorder_items2(obs_scene_t *scene,
|
||||
struct obs_sceneitem_order_info *item_order,
|
||||
size_t item_order_size);
|
||||
|
||||
EXPORT bool obs_source_is_scene(const obs_source_t *source);
|
||||
|
||||
/** Adds/creates a new scene item for a source */
|
||||
EXPORT obs_sceneitem_t *obs_scene_add(obs_scene_t *scene, obs_source_t *source);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user