mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-19 05:51:16 -04:00
libobs: Remove obs_view_get_video_info
Deprecated since fc891295b6 (30.1).
This commit is contained in:
committed by
Ryan Foster
parent
be66c8a701
commit
163493d1e1
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user