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-12 16:25:47 -08:00
parent 56dc605497
commit cd97ce2a17
15 changed files with 43 additions and 17 deletions

View File

@@ -166,7 +166,8 @@ bool obs_module_load(void)
struct obs_source_info info = {};
info.id = "decklink-input";
info.type = OBS_SOURCE_TYPE_INPUT;
info.output_flags = OBS_SOURCE_ASYNC_VIDEO | OBS_SOURCE_AUDIO;
info.output_flags = OBS_SOURCE_ASYNC_VIDEO | OBS_SOURCE_AUDIO |
OBS_SOURCE_DO_NOT_DUPLICATE;
info.create = decklink_create;
info.destroy = decklink_destroy;
info.get_defaults = decklink_get_defaults;