From 647fb1376de0541743ec3c6d8761a7ef473c2c19 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Fri, 17 Dec 2021 15:50:00 -0800 Subject: [PATCH] libobs: Add preprocessor directive for AutoRelease types Since these helpers come from obs-websocket, obs-websocket needs a way to disable its own helpers if OBS is new enough to include them already. --- libobs/obs.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libobs/obs.hpp b/libobs/obs.hpp index 0185f9732..749994e3d 100644 --- a/libobs/obs.hpp +++ b/libobs/obs.hpp @@ -47,6 +47,7 @@ using OBSWeakEncoder = OBSRef; +#define OBS_AUTORELEASE inline void ___source_dummy_addref(obs_source_t *){}; inline void ___scene_dummy_addref(obs_scene_t *){}; inline void ___sceneitem_dummy_addref(obs_sceneitem_t *){};