From f15e1185c14a91e5e48a97aa01d21aab0d643850 Mon Sep 17 00:00:00 2001 From: Viktor Kojouharov Date: Tue, 19 May 2009 15:14:19 +0000 Subject: [PATCH] make this plugin buildable again SVN revision: 40746 --- legacy/ethumb/src/plugins/epdf/epdf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/legacy/ethumb/src/plugins/epdf/epdf.c b/legacy/ethumb/src/plugins/epdf/epdf.c index 9cc47a1fab..e5c855b85f 100644 --- a/legacy/ethumb/src/plugins/epdf/epdf.c +++ b/legacy/ethumb/src/plugins/epdf/epdf.c @@ -14,15 +14,17 @@ _generate_thumb(Ethumb *e) Epdf_Document *document; Epdf_Page *page; Evas_Object *o; + const char *src_path; int w, h, ww, hh; int fx, fy, fw, fh; int npages; int pagenum; - document = epdf_document_new(e->src_path); + ethumb_file_get(e, &src_path, NULL); + document = epdf_document_new(src_path); 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); return; } @@ -30,7 +32,7 @@ _generate_thumb(Ethumb *e) page = epdf_page_new(document); 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); ethumb_finished_callback_call(e, 0); return;