From e465e7d58ae202ac28171e63d41db7eff3aa7e76 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Tue, 14 Jan 2014 13:59:27 +0900 Subject: [PATCH] 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 9898e5ca6e..4917fb2811 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; }