framehashcache: minor code cleanup

This commit is contained in:
itsmattkc
2020-11-16 01:35:52 +11:00
parent a9bc1312c1
commit c81bb003d3
2 changed files with 13 additions and 21 deletions
+4 -1
View File
@@ -31,7 +31,10 @@ OLIVE_NAMESPACE_ENTER
void PlaybackCache::Invalidate(const TimeRange &r)
{
Q_ASSERT(r.in() != r.out());
if (r.in() == r.out()) {
qWarning() << "Tried to invalidate zero-length range";
return;
}
invalidated_.insert(r);