renderer: remove frames from hash map as well when the diskmanager deletes

them
This commit is contained in:
itsmattkc
2020-02-27 17:46:49 +11:00
parent 735e180d5a
commit f9a54ebdb6
3 changed files with 30 additions and 3 deletions
+1 -1
View File
@@ -343,7 +343,7 @@ void VideoRenderBackend::TruncateFrameCacheLength(const rational &length)
void VideoRenderBackend::FrameRemovedFromDiskCache(const QByteArray &hash)
{
QList<rational> deleted_frames = frame_cache()->FramesWithHash(hash);
QList<rational> deleted_frames = frame_cache()->TakeFramesWithHash(hash);
foreach (const rational& frame, deleted_frames) {
TimeRange invalidated(frame, frame+params_.time_base());