mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-15 21:17:00 -04:00
libobs: Fix crash if missing plugin for a source
I forgot that the info variable may be intentionally NULL if a source's plugin in missing.
This commit is contained in:
@@ -191,7 +191,7 @@ obs_source_t *obs_source_create(enum obs_source_type type, const char *id,
|
||||
blog(LOG_INFO, "source '%s' (%s) created", name, id);
|
||||
obs_source_dosignal(source, "source_create", NULL);
|
||||
|
||||
if (info->type == OBS_SOURCE_TYPE_TRANSITION)
|
||||
if (info && info->type == OBS_SOURCE_TYPE_TRANSITION)
|
||||
os_atomic_inc_long(&obs->data.active_transitions);
|
||||
return source;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user