From fb38c3fd3d8e6c9432530d470cc5ca973bc4335a Mon Sep 17 00:00:00 2001 From: montellese Date: Sat, 28 Feb 2015 01:50:53 +0100 Subject: CTextureCacheJob: add fallback hash in case neither mtime/ctime nor size of an image are known --- xbmc/TextureCacheJob.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xbmc/TextureCacheJob.cpp b/xbmc/TextureCacheJob.cpp index b28a66901c..ebbab151f1 100644 --- a/xbmc/TextureCacheJob.cpp +++ b/xbmc/TextureCacheJob.cpp @@ -235,6 +235,9 @@ std::string CTextureCacheJob::GetImageHash(const std::string &url) if (time || st.st_size) return StringUtils::Format("d%" PRId64"s%" PRId64, time, st.st_size);; + // the image exists but we couldn't determine the mtime/ctime and/or size + // so set an obviously bad hash + return "BADHASH"; } CLog::Log(LOGDEBUG, "%s - unable to stat url %s", __FUNCTION__, url.c_str()); return ""; -- cgit v1.2.3