diff options
author | Sascha Montellese <sascha.montellese@gmail.com> | 2015-02-28 19:07:26 +0100 |
---|---|---|
committer | Sascha Montellese <sascha.montellese@gmail.com> | 2015-02-28 19:07:26 +0100 |
commit | 862dd42035d39600fa8024b79c8ff23e7e9fe0ef (patch) | |
tree | 164be9c4ef96e3485bcfd8d92468ef45d2378516 | |
parent | 08b1595a3a16e2d19bc36062b7482f36d01c9193 (diff) | |
parent | fb38c3fd3d8e6c9432530d470cc5ca973bc4335a (diff) |
Merge pull request #6562 from Montellese/texturecache_fix_http_chunked_transfer
CTextureCacheJob: add fallback hash in case neither mtime/ctime nor size of an image are known
-rw-r--r-- | xbmc/TextureCacheJob.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 ""; |