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:
@@ -1589,7 +1589,8 @@ static obs_properties_t *game_capture_properties(void *data)
|
||||
struct obs_source_info game_capture_info = {
|
||||
.id = "game_capture",
|
||||
.type = OBS_SOURCE_TYPE_INPUT,
|
||||
.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW,
|
||||
.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW |
|
||||
OBS_SOURCE_DO_NOT_DUPLICATE,
|
||||
.get_name = game_capture_name,
|
||||
.create = game_capture_create,
|
||||
.destroy = game_capture_destroy,
|
||||
|
Reference in New Issue
Block a user