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.
This commit is contained in:
jp9000 2015-10-21 06:28:03 -07:00
parent 8686451d5d
commit c27ff7903d

View File

@ -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)