fixed bug that caused some frames to never render indefinitely

Frames should no longer get stuck unrendered.
This commit is contained in:
itsmattkc
2019-11-17 17:14:08 +09:00
parent 2752a0a005
commit 8e6c23ffc1
4 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -60,9 +60,9 @@ void VideoRenderFrameCache::SetHash(const rational &time, const QByteArray &hash
time_hash_map_.insert(time, hash);
}
void VideoRenderFrameCache::RemoveHash(const rational &time)
void VideoRenderFrameCache::RemoveHash(const rational &time, const QByteArray &hash)
{
RemoveHashFromCurrentlyCaching(time_hash_map_.value(time));
RemoveHashFromCurrentlyCaching(hash);
time_hash_map_.remove(time);
}