Uses obs_source_valid in data_valid which will ensure a debug message is displayed if null.
@@ -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)