libobs: Add source cap to hint not to show properties

(This commit also modifies UI)

Adds a source capability flag to indicate that properties should not be
shown on creation
This commit is contained in:
jp9000
2021-12-07 20:51:05 -08:00
parent 0be3524658
commit b92e941b4f
2 changed files with 11 additions and 0 deletions

View File

@@ -5607,6 +5607,11 @@ static inline bool should_show_properties(obs_source_t *source, const char *id)
return false;
if (!obs_source_configurable(source))
return false;
uint32_t caps = obs_source_get_output_flags(source);
if ((caps & OBS_SOURCE_CAP_DONT_SHOW_PROPERTIES) != 0)
return false;
return true;
}