aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Rector <rmrector@gmail.com>2023-08-19 16:43:28 -0600
committerRyan Rector <rmrector@gmail.com>2023-09-13 16:59:02 -0600
commitc7115e0ae6b857aa2a61b3ad80eeae52d89935e5 (patch)
tree6df276759ff6b4d96e65fe75ead9a3fc74243d9d
parent0586131fb17c44346504b45f7e3176d7cf83510a (diff)
fix save new no-hash images to DB
-rw-r--r--xbmc/TextureCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/TextureCache.cpp b/xbmc/TextureCache.cpp
index e0a5e2d906..ab5fff51e7 100644
--- a/xbmc/TextureCache.cpp
+++ b/xbmc/TextureCache.cpp
@@ -296,7 +296,7 @@ void CTextureCache::OnCachingComplete(bool success, CTextureCacheJob *job)
{
if (success)
{
- if (job->m_oldHash == job->m_details.hash)
+ if (job->m_details.id != -1 && job->m_oldHash == job->m_details.hash)
SetCachedTextureValid(job->m_url, job->m_details.updateable);
else
AddCachedTexture(job->m_url, job->m_details);