minor render pipeline improvements

Simple flow improvements of the rendering pipeline for efficiency and
reliability.
This commit is contained in:
itsmattkc
2020-01-02 06:01:23 +11:00
parent f8839e74de
commit 31af04fc6c
4 changed files with 23 additions and 30 deletions
@@ -53,17 +53,11 @@ QByteArray VideoRenderFrameCache::TimeToHash(const rational &time) const
void VideoRenderFrameCache::SetHash(const rational &time, const QByteArray &hash)
{
// No longer currently caching this frame
RemoveHashFromCurrentlyCaching(hash);
// Insert frame into map
time_hash_map_.insert(time, hash);
}
void VideoRenderFrameCache::RemoveHash(const rational &time, const QByteArray &hash)
{
RemoveHashFromCurrentlyCaching(hash);
time_hash_map_.remove(time);
}