From c27ff7903d58b3da2e7d577369b4a063bc7ddeb5 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 21 Oct 2015 06:28:03 -0700 Subject: [PATCH] libobs: Display debug msg in data_valid if null Uses obs_source_valid in data_valid which will ensure a debug message is displayed if null. --- 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 e0e8d380f..7503495e4 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -31,7 +31,7 @@ static inline bool data_valid(const struct obs_source *source, const char *f) { - return source && source->context.data; + return obs_source_valid(source, f) && source->context.data; } const struct obs_source_info *find_source(struct darray *list, const char *id)