Prepare for deprecations in OBS 31

See https://github.com/obsproject/obs-studio/pull/11164
This commit is contained in:
WarmUpTill
2024-08-25 12:49:13 +02:00
committed by WarmUpTill
parent c1ac9bb890
commit 354880ad52
5 changed files with 27 additions and 8 deletions

View File

@@ -15,7 +15,11 @@ std::string GetSceneItemTransform(obs_scene_item *item)
{
struct obs_transform_info info;
struct obs_sceneitem_crop crop;
#if (LIBOBS_API_VER >= MAKE_SEMANTIC_VERSION(30, 1, 0))
obs_sceneitem_get_info2(item, &info);
#else
obs_sceneitem_get_info(item, &info);
#endif
obs_sceneitem_get_crop(item, &crop);
auto size = getSceneItemSize(item);