From c48bc42a4752d742f80efe169dc895f1805ed6c1 Mon Sep 17 00:00:00 2001 From: CodeYan01 <65320293+CodeYan01@users.noreply.github.com> Date: Fri, 28 Jul 2023 20:45:44 +0800 Subject: [PATCH] docs: Indicate that refcount is not incremented Edited `obs_filter_get_parent` and `obs_filter_get_target` --- docs/sphinx/reference-sources.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/sphinx/reference-sources.rst b/docs/sphinx/reference-sources.rst index 41306391b..75c918f11 100644 --- a/docs/sphinx/reference-sources.rst +++ b/docs/sphinx/reference-sources.rst @@ -1543,7 +1543,8 @@ Filters .. function:: obs_source_t *obs_filter_get_parent(const obs_source_t *filter) If the source is a filter, returns the parent source of the filter. - The parent source is the source being filtered. + The parent source is the source being filtered. Does not increment the + reference. Only guaranteed to be valid inside of the video_render, filter_audio, filter_video, and filter_remove callbacks. @@ -1553,7 +1554,8 @@ Filters .. function:: obs_source_t *obs_filter_get_target(const obs_source_t *filter) If the source is a filter, returns the target source of the filter. - The target source is the next source in the filter chain. + The target source is the next source in the filter chain. Does not increment + the reference. Only guaranteed to be valid inside of the video_render, filter_audio, filter_video, and filter_remove callbacks.