forked from enlightenment/efl
Fix nasty cenourette.
Also from Raphael Kubo, you can ask him what the commit message means (rakuco around the irc plane of existence) SVN revision: 49976
This commit is contained in:
parent
8e50bcb41b
commit
b9d2cf0983
|
@ -384,10 +384,10 @@ _ethumbd_slave_cmd_ready(struct _Ethumbd *ed)
|
|||
{
|
||||
char *bufcmd = ed->slave.bufcmd;
|
||||
Eina_Bool *success;
|
||||
char *thumb_path, *thumb_key;
|
||||
const char *thumb_path = NULL;
|
||||
const char *thumb_key = NULL;
|
||||
int *size_path, *size_key;
|
||||
|
||||
|
||||
success = (Eina_Bool *)bufcmd;
|
||||
bufcmd += sizeof(*success);
|
||||
|
||||
|
@ -396,13 +396,16 @@ _ethumbd_slave_cmd_ready(struct _Ethumbd *ed)
|
|||
|
||||
_write_safe(STDERR_FILENO, bufcmd, ed->slave.scmd);
|
||||
|
||||
thumb_path = bufcmd;
|
||||
bufcmd += *size_path;
|
||||
if (*size_path)
|
||||
{
|
||||
thumb_path = bufcmd;
|
||||
bufcmd += *size_path;
|
||||
}
|
||||
|
||||
size_key = (int *)bufcmd;
|
||||
bufcmd += sizeof(*size_key);
|
||||
|
||||
thumb_key = bufcmd;
|
||||
if (*size_key) thumb_key = bufcmd;
|
||||
|
||||
_generated_cb(ed, *success, thumb_path, thumb_key);
|
||||
|
||||
|
|
|
@ -220,7 +220,6 @@ _ec_op_generated_cb(void *data, Ethumb *e, Eina_Bool success)
|
|||
const char *thumb_path, *thumb_key;
|
||||
int size_path, size_key, size_cmd;
|
||||
|
||||
fprintf(stderr, "thumbnail generated!");
|
||||
DBG("thumb generated!");
|
||||
ethumb_thumb_path_get(e, &thumb_path, &thumb_key);
|
||||
|
||||
|
|
Loading…
Reference in New Issue