mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
mac-syphon: Replace source addref calls with get_ref
This commit is contained in:
parent
ad6cb5a8be
commit
404ebdbd51
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user