made timerangelist a encapsulation rather than a derivation

Locks off functionality that really shouldn't be used.
This commit is contained in:
itsmattkc
2020-10-29 02:18:41 +11:00
parent b582843d27
commit 07dc7104c5
9 changed files with 115 additions and 43 deletions
+2 -2
View File
@@ -136,7 +136,7 @@ void PreviewAutoCacher::VideoInvalidated(const TimeRange &range)
if (ignore_next_mouse_button_ || !(qApp->mouseButtons() & Qt::LeftButton)) {
ignore_next_mouse_button_ = false;
invalidated_video_.InsertTimeRange(range);
invalidated_video_.insert(range);
TryRender();
}
@@ -147,7 +147,7 @@ void PreviewAutoCacher::AudioInvalidated(const TimeRange &range)
ClearQueue(false);
// Start jobs to re-render the audio at this range, split into 2 second chunks
invalidated_audio_.InsertTimeRange(range);
invalidated_audio_.insert(range);
TryRender();
}