瀏覽代碼

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 年之前
父節點
當前提交
c27ff7903d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)