mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
libobs: Add source output flag OBS_SOURCE_DO_NOT_DUPLICATE
Certain types of sources (display captures, game captures, audio device captures, video device captures) should not be duplicated. This capability flag hints that the source prefers references over full duplication.
This commit is contained in:
@@ -115,6 +115,15 @@ enum obs_source_type {
|
||||
*/
|
||||
#define OBS_SOURCE_COMPOSITE (1<<6)
|
||||
|
||||
/**
|
||||
* Source should not be fully duplicated
|
||||
*
|
||||
* When this is used, specifies that the source should not be fully duplicated,
|
||||
* and should prefer to duplicate via holding references rather than full
|
||||
* duplication.
|
||||
*/
|
||||
#define OBS_SOURCE_DO_NOT_DUPLICATE (1<<7)
|
||||
|
||||
/** @} */
|
||||
|
||||
typedef void (*obs_source_enum_proc_t)(obs_source_t *parent,
|
||||
|
||||
Reference in New Issue
Block a user