diff --git a/docs/sphinx/reference-core.rst b/docs/sphinx/reference-core.rst index 576cd0351..63f5230ae 100644 --- a/docs/sphinx/reference-core.rst +++ b/docs/sphinx/reference-core.rst @@ -351,6 +351,9 @@ Libobs Objects Increments the source reference counter, use :c:func:`obs_source_release()` to release it when complete. + .. deprecated:: 31.0 + Use :c:func:`obs_frontend_get_transitions` from the Frontend API or :c:func:`obs_get_source_by_uuid` instead. + --------------------- .. function:: obs_source_t *obs_get_transition_by_uuid(const char *uuid) @@ -362,6 +365,9 @@ Libobs Objects .. versionadded:: 29.1 + .. deprecated:: 31.0 + Use :c:func:`obs_get_source_by_uuid` instead. + --------------------- .. function:: obs_scene_t *obs_get_scene_by_name(const char *name) diff --git a/libobs/obs.h b/libobs/obs.h index b1105a7f4..da9d09261 100644 --- a/libobs/obs.h +++ b/libobs/obs.h @@ -716,10 +716,12 @@ EXPORT obs_source_t *obs_get_source_by_name(const char *name); EXPORT obs_source_t *obs_get_source_by_uuid(const char *uuid); /** Get a transition source by its name. */ -EXPORT obs_source_t *obs_get_transition_by_name(const char *name); +OBS_DEPRECATED EXPORT obs_source_t * +obs_get_transition_by_name(const char *name); /** Get a transition source by its UUID. */ -EXPORT obs_source_t *obs_get_transition_by_uuid(const char *uuid); +OBS_DEPRECATED EXPORT obs_source_t * +obs_get_transition_by_uuid(const char *uuid); /** Gets an output by its name. */ EXPORT obs_output_t *obs_get_output_by_name(const char *name);