Преглед на файлове

libobs: Remove obs_view_get_video_info

Deprecated since fc891295b69c7a079d6168d686a222bf726ff171 (30.1).
Sebastian Beckmann преди 2 месеца
родител
ревизия
163493d1e1
променени са 3 файла, в които са добавени 0 реда и са изтрити 32 реда
  1. 0 10
      docs/sphinx/reference-core.rst
  2. 0 19
      libobs/obs-view.c
  3. 0 3
      libobs/obs.h

+ 0 - 10
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.

+ 0 - 19
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);

+ 0 - 3
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);