From 8212cedf0365e081f9fd855f0dec006516fd8d6e Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 25 Dec 2021 17:10:45 -0800 Subject: [PATCH] Revert "libobs, docs: Add function to get source version" This reverts commit 1a7a10048c1a22ea969545e385a456b240baad5e. --- docs/sphinx/reference-sources.rst | 6 ------ libobs/obs-source.c | 11 ----------- libobs/obs.h | 3 --- 3 files changed, 20 deletions(-) diff --git a/docs/sphinx/reference-sources.rst b/docs/sphinx/reference-sources.rst index 9994f7d35..ef29dde43 100644 --- a/docs/sphinx/reference-sources.rst +++ b/docs/sphinx/reference-sources.rst @@ -903,12 +903,6 @@ General Source Functions --------------------- -.. function:: uint32_t obs_source_get_version(const obs_source_t *source) - - :return: Get version of a source - ---------------------- - .. function:: signal_handler_t *obs_source_get_signal_handler(const obs_source_t *source) :return: The source's signal handler diff --git a/libobs/obs-source.c b/libobs/obs-source.c index 3c9bf64d5..7b75336a6 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -5433,14 +5433,3 @@ void obs_source_restore_filters(obs_source_t *source, obs_data_array_t *array) da_free(cur_filters); } - -uint32_t obs_source_get_version(const obs_source_t *source) -{ - if (!obs_source_valid(source, "obs_source_get_version")) - return 0; - - if (!source->info.version) - return 1; - - return source->info.version; -} diff --git a/libobs/obs.h b/libobs/obs.h index 538b2f171..3c3d03306 100644 --- a/libobs/obs.h +++ b/libobs/obs.h @@ -1205,9 +1205,6 @@ EXPORT void obs_source_remove_caption_callback(obs_source_t *source, obs_source_caption_t callback, void *param); -/** Get version of a source **/ -EXPORT uint32_t obs_source_get_version(const obs_source_t *source); - enum obs_deinterlace_mode { OBS_DEINTERLACE_MODE_DISABLE, OBS_DEINTERLACE_MODE_DISCARD,