renderer: prevent cache saving/loading with empty path

This commit is contained in:
itsmattkc
2021-04-13 15:53:33 +10:00
parent 09009e01fc
commit 157da658a5
2 changed files with 15 additions and 1 deletions
+5 -1
View File
@@ -545,8 +545,12 @@ bool RenderProcessor::CanCacheFrames()
QVariant RenderProcessor::GetCachedTexture(const QByteArray& hash)
{
VideoParams video_params = GetCacheVideoParams();
QString cache_dir = ticket_->property("cache").toString();
if (cache_dir.isEmpty()) {
return QVariant();
}
VideoParams video_params = GetCacheVideoParams();
FramePtr f = FrameHashCache::LoadCacheFrame(cache_dir, hash);