Evas/cserve2: Stop looking at those dirty pics!

What I mean is erm... images marked as dirty don't have a
cache_key, and that's perfectly fine when the image file
has changed.
This commit is contained in:
Jean-Philippe Andre 2014-01-14 13:59:27 +09:00
parent debbba4758
commit e465e7d58a
1 changed files with 5 additions and 1 deletions

View File

@ -3033,7 +3033,6 @@ _shared_image_entry_image_data_find(Image_Entry *ie)
Eina_Bool add_to_hash = SHARED_INDEX_ADD_TO_HASH;
int k;
DBG("Trying to find if image '%s:%s' is already loaded by cserve2",
ie->file, ie->key);
@ -3045,6 +3044,11 @@ _shared_image_entry_image_data_find(Image_Entry *ie)
if (!ie->cache_key)
{
if (ie->flags.dirty)
{
DBG("Image is dirty (file changed?), not in cache.");
return NULL;
}
CRI("Looking for an image in remote cache without hash key?");
return NULL;
}