ethumb: reduce number of generate.

SVN revision: 59018
This commit is contained in:
Cedric BAIL 2011-04-28 17:00:49 +00:00
parent 88745904b4
commit 3d28fd82b3
1 changed files with 9 additions and 1 deletions

View File

@ -271,7 +271,15 @@ _ec_op_generate(struct _Ethumbd_Child *ec)
ethumb_file_set(ec->ethumbt[index], path, key);
ethumb_thumb_path_set(ec->ethumbt[index], thumb_path, thumb_key);
ethumb_generate(ec->ethumbt[index], _ec_op_generated_cb, ec, NULL);
if (ethumb_exists(ec->ethumbt[index]))
{
_ec_op_generated_cb(ec, ec->ethumbt[index], EINA_TRUE);
}
else
{
ethumb_generate(ec->ethumbt[index], _ec_op_generated_cb, ec, NULL);
}
free(path);
free(key);