moved more cache functions out of viewer

This commit is contained in:
itsmattkc
2022-05-16 20:33:59 -07:00
parent e73f01b527
commit 7084d0feb6
11 changed files with 114 additions and 144 deletions
+9
View File
@@ -932,6 +932,15 @@ void Node::InvalidateCache(const TimeRange &range, const QString &from, int elem
Q_UNUSED(from)
Q_UNUSED(element)
if (range.in() != range.out()) {
if (video_cache_->IsEnabled()) {
video_frame_cache()->Invalidate(range);
}
if (audio_cache_->IsEnabled()) {
audio_playback_cache()->Invalidate(range);
}
}
SendInvalidateCache(range, options);
}