提交 e8c1ec40 编写于 作者: V VodBox 提交者: jp9000

libobs: Send activate and show signals to filters

上级 647e7e24
......@@ -1088,6 +1088,18 @@ void obs_source_video_tick(obs_source_t *source, float seconds)
hide_source(source);
}
if (source->filters.num) {
for (size_t i = source->filters.num; i > 0; i--) {
obs_source_t *filter =
source->filters.array[i - 1];
if (now_showing) {
show_source(filter);
} else {
hide_source(filter);
}
}
}
source->showing = now_showing;
}
......@@ -1100,6 +1112,18 @@ void obs_source_video_tick(obs_source_t *source, float seconds)
deactivate_source(source);
}
if (source->filters.num) {
for (size_t i = source->filters.num; i > 0; i--) {
obs_source_t *filter =
source->filters.array[i - 1];
if (now_active) {
activate_source(filter);
} else {
deactivate_source(filter);
}
}
}
source->active = now_active;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册