From e14050bbe162f741c2d48fc8926e63bb2bb5fb49 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 31 Dec 2014 15:15:19 -0800 Subject: [PATCH] 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. --- libobs/obs-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index 0cd298b11..6ae9df217 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -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;