提交 18afe823 编写于 作者: J jp9000

libobs: Skip filter if internal data not present

If the filter's binary was recently removed, the data will be invalid,
so make sure that it properly handles that situation by skipping the
filter.
上级 e31fea66
...@@ -1173,9 +1173,9 @@ static bool ready_async_frame(obs_source_t *source, uint64_t sys_time); ...@@ -1173,9 +1173,9 @@ static bool ready_async_frame(obs_source_t *source, uint64_t sys_time);
void obs_source_video_render(obs_source_t *source) void obs_source_video_render(obs_source_t *source)
{ {
if (!source_valid(source)) return; if (!source) return;
if (!source->enabled) { if (!source->context.data || !source->enabled) {
if (source->filter_parent) if (source->filter_parent)
obs_source_skip_video_filter(source); obs_source_skip_video_filter(source);
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册