Skip to content
Snippets Groups Projects
Commit bf42c259 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

WIP drop partial framesets

parent 5ab94a66
No related branches found
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
......@@ -169,6 +169,13 @@ Feed::Feed(nlohmann::json &config, ftl::net::Universe*net) :
handle_receiver_ = receiver_->onFrameSet(
[this](const ftl::data::FrameSetPtr& fs) {
if (value("drop_partial_framesets", false)) {
if (fs->count < fs->frames.size()) {
LOG(WARNING) << "Dropping partial frameset: " << fs->timestamp();
return true;
}
}
// FIXME: What happens if pipeline added concurrently?
if (pre_pipelines_.count(fs->frameset()) == 1) {
pre_pipelines_[fs->frameset()]->apply(*fs, *fs, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment