* Fix false positives in playlist caching optimization when we have duplicate file names in different directories.

This commit is contained in:
Justin Maggard
2012-02-10 23:35:11 +00:00
parent 6064099fb0
commit ab33ab34bc
5 changed files with 54 additions and 18 deletions

View File

@ -90,21 +90,6 @@ error:
return NULL;
}
/* Simple, efficient hash function from Daniel J. Bernstein */
static unsigned int
DJBHash(const char *str, int len)
{
unsigned int hash = 5381;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash = ((hash << 5) + hash) + (*str);
}
return hash;
}
/* And our main album art functions */
void
update_if_album_art(const char *path)