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:
jp9000
2016-01-26 11:49:50 -08:00
parent 56dc605497
commit cd97ce2a17
15 changed files with 43 additions and 17 deletions
+9
View File
@@ -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,