Skip to content

Commit

Permalink
CTextureCacheJob: add fallback hash in case neither mtime/ctime nor s…
Browse files Browse the repository at this point in the history
…ize of an image are known
  • Loading branch information
Montellese committed Feb 28, 2015
1 parent 68a1dda commit fb38c3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/TextureCacheJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
Expand Down

0 comments on commit fb38c3f

Please sign in to comment.