block: don't send cache invalidation signals from length changes

Minor optimization.
This commit is contained in:
itsmattkc
2020-03-30 15:11:32 +11:00
parent 2bfe9f44df
commit a143b64ac7
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -303,3 +303,13 @@ NodeInput *Block::speed_input() const
return speed_input_;
}
void Block::InvalidateCache(const rational &start_range, const rational &end_range, NodeInput *from)
{
// We ignore length changes since they don't have an effect on our frames
if (from == length_input_) {
return;
}
Node::InvalidateCache(start_range, end_range, from);
}