only disk cache around the playhead

This commit is contained in:
itsmattkc
2020-01-10 20:35:48 +11:00
parent ea42ca36f5
commit d32306f88b
16 changed files with 222 additions and 136 deletions
+2 -2
View File
@@ -109,9 +109,9 @@ void TimeRuler::SetScroll(int s)
update();
}
void TimeRuler::CacheInvalidatedRange(const rational& in, const rational& out)
void TimeRuler::CacheInvalidatedRange(const TimeRange& range)
{
dirty_cache_ranges_.InsertTimeRange(TimeRange(in, out));
dirty_cache_ranges_.InsertTimeRange(range);
update();
}