Browse Source

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.
jp9000 10 years ago
parent
commit
c27ff7903d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs/obs-source.c

+ 1 - 1
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)