From 404ebdbd51a62e4560193e0a27c5a0f7c5c6be1e Mon Sep 17 00:00:00 2001 From: Jim Date: Mon, 24 Jan 2022 11:36:41 -0800 Subject: [PATCH] mac-syphon: Replace source addref calls with get_ref --- plugins/mac-syphon/syphon.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/mac-syphon/syphon.m b/plugins/mac-syphon/syphon.m index 6d4a5c230..a34f5eb29 100644 --- a/plugins/mac-syphon/syphon.m +++ b/plugins/mac-syphon/syphon.m @@ -892,8 +892,9 @@ static void syphon_release(void *param) static inline obs_properties_t *syphon_properties_internal(syphon_t s) { - if (s) - obs_source_addref(s->source); + if (s && obs_source_get_ref(s->source) == NULL) { + s = NULL; + } obs_properties_t *props = obs_properties_create_param(s, syphon_release);