mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-24 08:20:42 -04:00
image-source: Replace source addref calls with get_ref
This commit is contained in:
@@ -133,8 +133,7 @@ static obs_source_t *get_transition(struct slideshow *ss)
|
||||
obs_source_t *tr;
|
||||
|
||||
pthread_mutex_lock(&ss->mutex);
|
||||
tr = ss->transition;
|
||||
obs_source_addref(tr);
|
||||
tr = obs_source_get_ref(ss->transition);
|
||||
pthread_mutex_unlock(&ss->mutex);
|
||||
|
||||
return tr;
|
||||
@@ -151,8 +150,7 @@ static obs_source_t *get_source(struct darray *array, const char *path)
|
||||
const char *cur_path = files.array[i].path;
|
||||
|
||||
if (strcmp(path, cur_path) == 0) {
|
||||
source = files.array[i].source;
|
||||
obs_source_addref(source);
|
||||
source = obs_source_get_ref(files.array[i].source);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user