libobs: add helper for source filter count

Add function size_t obs_source_get_filter_count(obs_source_t *source)
which returns the number of filters a source has. Update docs for it.
This commit is contained in:
Anton Bershanskiy
2021-03-16 01:49:50 +03:00
committed by Jim
parent 346e268a3d
commit 54cbd98d91
3 changed files with 16 additions and 0 deletions

View File

@@ -1101,6 +1101,9 @@ EXPORT void obs_source_enum_filters(obs_source_t *source,
EXPORT obs_source_t *obs_source_get_filter_by_name(obs_source_t *source,
const char *name);
/** Gets the number of filters the source has. */
EXPORT size_t obs_source_filter_count(const obs_source_t *source);
EXPORT void obs_source_copy_filters(obs_source_t *dst, obs_source_t *src);
EXPORT void obs_source_copy_single_filter(obs_source_t *dst,
obs_source_t *filter);