make this plugin buildable again

SVN revision: 40746
This commit is contained in:
Viktor Kojouharov 2009-05-19 15:14:19 +00:00
parent dead11c234
commit f15e1185c1
1 changed files with 5 additions and 3 deletions

View File

@ -14,15 +14,17 @@ _generate_thumb(Ethumb *e)
Epdf_Document *document; Epdf_Document *document;
Epdf_Page *page; Epdf_Page *page;
Evas_Object *o; Evas_Object *o;
const char *src_path;
int w, h, ww, hh; int w, h, ww, hh;
int fx, fy, fw, fh; int fx, fy, fw, fh;
int npages; int npages;
int pagenum; int pagenum;
document = epdf_document_new(e->src_path); ethumb_file_get(e, &src_path, NULL);
document = epdf_document_new(src_path);
if (!document) if (!document)
{ {
fprintf(stderr, "ERROR: could not read document: %s\n", e->src_path); fprintf(stderr, "ERROR: could not read document: %s\n", src_path);
ethumb_finished_callback_call(e, 0); ethumb_finished_callback_call(e, 0);
return; return;
} }
@ -30,7 +32,7 @@ _generate_thumb(Ethumb *e)
page = epdf_page_new(document); page = epdf_page_new(document);
if (!page) if (!page)
{ {
fprintf(stderr, "ERROR: could not read document: %s\n", e->src_path); fprintf(stderr, "ERROR: could not read document: %s\n", src_path);
epdf_document_delete(document); epdf_document_delete(document);
ethumb_finished_callback_call(e, 0); ethumb_finished_callback_call(e, 0);
return; return;