forked from enlightenment/efl
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:
parent
debbba4758
commit
e465e7d58a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue