summaryrefslogtreecommitdiff
path: root/legacy/ethumb
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-04-28 17:00:49 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-04-28 17:00:49 +0000
commit3d28fd82b36b54f974e036b31408cb08192a4c09 (patch)
treefcc4a25b541d566c2354c52e7062963cb7f00168 /legacy/ethumb
parent88745904b4a69782b233f562b4f090b03bc72c1e (diff)
ethumb: reduce number of generate.
SVN revision: 59018
Diffstat (limited to 'legacy/ethumb')
-rw-r--r--legacy/ethumb/src/bin/ethumbd_child.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/legacy/ethumb/src/bin/ethumbd_child.c b/legacy/ethumb/src/bin/ethumbd_child.c
index 38b155d0d6..aeae424dbc 100644
--- a/legacy/ethumb/src/bin/ethumbd_child.c
+++ b/legacy/ethumb/src/bin/ethumbd_child.c
@@ -271,7 +271,15 @@ _ec_op_generate(struct _Ethumbd_Child *ec)
271 271
272 ethumb_file_set(ec->ethumbt[index], path, key); 272 ethumb_file_set(ec->ethumbt[index], path, key);
273 ethumb_thumb_path_set(ec->ethumbt[index], thumb_path, thumb_key); 273 ethumb_thumb_path_set(ec->ethumbt[index], thumb_path, thumb_key);
274 ethumb_generate(ec->ethumbt[index], _ec_op_generated_cb, ec, NULL); 274
275 if (ethumb_exists(ec->ethumbt[index]))
276 {
277 _ec_op_generated_cb(ec, ec->ethumbt[index], EINA_TRUE);
278 }
279 else
280 {
281 ethumb_generate(ec->ethumbt[index], _ec_op_generated_cb, ec, NULL);
282 }
275 283
276 free(path); 284 free(path);
277 free(key); 285 free(key);