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:
parent
8686451d5d
commit
c27ff7903d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user