jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e465e7d58ae202ac28171e63d41db7eff3aa7e76

commit e465e7d58ae202ac28171e63d41db7eff3aa7e76
Author: Jean-Philippe Andre <[email protected]>
Date:   Tue Jan 14 13:59:27 2014 +0900

    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.
---
 src/lib/evas/cserve2/evas_cs2_client.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/evas/cserve2/evas_cs2_client.c 
b/src/lib/evas/cserve2/evas_cs2_client.c
index 9898e5c..4917fb2 100644
--- a/src/lib/evas/cserve2/evas_cs2_client.c
+++ b/src/lib/evas/cserve2/evas_cs2_client.c
@@ -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;
      }

-- 


Reply via email to