diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2014-01-14 13:59:27 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2014-01-14 14:23:05 +0900 |
commit | e465e7d58ae202ac28171e63d41db7eff3aa7e76 (patch) | |
tree | 517d1c64de7412b0eae58a9553ddc9dc71ecc1a6 /src/lib/evas/cserve2/evas_cs2_client.c | |
parent | debbba47581c706dce600e28a8945f3b07925d62 (diff) |
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.
Diffstat (limited to '')
-rw-r--r-- | src/lib/evas/cserve2/evas_cs2_client.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) | |||
3033 | Eina_Bool add_to_hash = SHARED_INDEX_ADD_TO_HASH; | 3033 | Eina_Bool add_to_hash = SHARED_INDEX_ADD_TO_HASH; |
3034 | int k; | 3034 | int k; |
3035 | 3035 | ||
3036 | |||
3037 | DBG("Trying to find if image '%s:%s' is already loaded by cserve2", | 3036 | DBG("Trying to find if image '%s:%s' is already loaded by cserve2", |
3038 | ie->file, ie->key); | 3037 | ie->file, ie->key); |
3039 | 3038 | ||
@@ -3045,6 +3044,11 @@ _shared_image_entry_image_data_find(Image_Entry *ie) | |||
3045 | 3044 | ||
3046 | if (!ie->cache_key) | 3045 | if (!ie->cache_key) |
3047 | { | 3046 | { |
3047 | if (ie->flags.dirty) | ||
3048 | { | ||
3049 | DBG("Image is dirty (file changed?), not in cache."); | ||
3050 | return NULL; | ||
3051 | } | ||
3048 | CRI("Looking for an image in remote cache without hash key?"); | 3052 | CRI("Looking for an image in remote cache without hash key?"); |
3049 | return NULL; | 3053 | return NULL; |
3050 | } | 3054 | } |