mac-syphon: Replace source addref calls with get_ref

This commit is contained in:
Jim 2022-01-24 11:36:41 -08:00
parent ad6cb5a8be
commit 404ebdbd51

View file

@ -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);