libobs: Add API to get last OBS version of a source

Allows the ability to change the behavior of a source depending on the
previous OBS version.
This commit is contained in:
jp9000
2019-09-20 00:13:51 -07:00
parent e200a8a8a9
commit 65c7e2d19d
4 changed files with 36 additions and 9 deletions

View File

@@ -1315,6 +1315,8 @@ EXPORT bool obs_source_async_decoupled(const obs_source_t *source);
EXPORT void obs_source_set_audio_active(obs_source_t *source, bool show);
EXPORT bool obs_source_audio_active(const obs_source_t *source);
EXPORT uint32_t obs_source_get_last_obs_version(const obs_source_t *source);
/* ------------------------------------------------------------------------- */
/* Transition-specific functions */
enum obs_transition_target {