From 163493d1e1c75facec65ed930e20c0bb36c7db60 Mon Sep 17 00:00:00 2001 From: Sebastian Beckmann Date: Sat, 9 Aug 2025 18:42:28 +0200 Subject: [PATCH] libobs: Remove obs_view_get_video_info Deprecated since fc891295b69c7a079d6168d686a222bf726ff171 (30.1). --- docs/sphinx/reference-core.rst | 10 ---------- libobs/obs-view.c | 19 ------------------- libobs/obs.h | 3 --- 3 files changed, 32 deletions(-) diff --git a/docs/sphinx/reference-core.rst b/docs/sphinx/reference-core.rst index 320772d90..d43694d25 100644 --- a/docs/sphinx/reference-core.rst +++ b/docs/sphinx/reference-core.rst @@ -947,16 +947,6 @@ Views --------------------- -.. function:: bool obs_view_get_video_info(obs_view_t *view, struct obs_video_info *ovi) - - Gets the video settings of the first matching mix currently in use for this view context. - - :return: *false* if no video - - .. deprecated:: 3X.X - ---------------------- - .. function:: void obs_view_enum_video_info(obs_view_t *view, bool (*enum_proc)(void *, struct obs_video_info *), void *param) Enumerates all the video info of all mixes that use the specified mix. diff --git a/libobs/obs-view.c b/libobs/obs-view.c index 80c0e8843..5b94242fb 100644 --- a/libobs/obs-view.c +++ b/libobs/obs-view.c @@ -188,25 +188,6 @@ void obs_view_remove(obs_view_t *view) pthread_mutex_unlock(&obs->video.mixes_mutex); } -bool obs_view_get_video_info(obs_view_t *view, struct obs_video_info *ovi) -{ - if (!view) - return false; - - pthread_mutex_lock(&obs->video.mixes_mutex); - - size_t idx = find_mix_for_view(view); - if (idx != DARRAY_INVALID) { - *ovi = obs->video.mixes.array[idx]->ovi; - pthread_mutex_unlock(&obs->video.mixes_mutex); - return true; - } - - pthread_mutex_unlock(&obs->video.mixes_mutex); - - return false; -} - void obs_view_enum_video_info(obs_view_t *view, bool (*enum_proc)(void *, struct obs_video_info *), void *param) { pthread_mutex_lock(&obs->video.mixes_mutex); diff --git a/libobs/obs.h b/libobs/obs.h index ca49835d4..9c42e4a8d 100644 --- a/libobs/obs.h +++ b/libobs/obs.h @@ -923,9 +923,6 @@ EXPORT video_t *obs_view_add2(obs_view_t *view, struct obs_video_info *ovi); /** Removes a view from the main render loop */ EXPORT void obs_view_remove(obs_view_t *view); -/** Gets the video settings currently in use for this view context, returns false if no video */ -OBS_DEPRECATED EXPORT bool obs_view_get_video_info(obs_view_t *view, struct obs_video_info *ovi); - /** Enumerate the video info of all mixes using the specified view context */ EXPORT void obs_view_enum_video_info(obs_view_t *view, bool (*enum_proc)(void *, struct obs_video_info *), void *param);