libobs: Remove obs_view_get_video_info

Deprecated since fc891295b6 (30.1).
This commit is contained in:
Sebastian Beckmann
2025-08-09 18:42:28 +02:00
committed by Ryan Foster
parent be66c8a701
commit 163493d1e1
3 changed files with 0 additions and 32 deletions

View File

@@ -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.

View File

@@ -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);

View File

@@ -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);