From f5f7c0e4dd83257f526b158e3998970717852a0e Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 17 Jul 2013 18:42:33 +0100 Subject: Initial work on progressive loading We are testing this using a new -p flag to mupdf that sets a bitrate at which data will appear to arrive progressively as time goes on. For example: mupdf -p 102400 pdf_reference17.pdf Details of the scheme used here are presented in docs/progressive.txt --- source/xps/xps-image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/xps/xps-image.c') diff --git a/source/xps/xps-image.c b/source/xps/xps-image.c index eb0d876f..cff7860d 100644 --- a/source/xps/xps-image.c +++ b/source/xps/xps-image.c @@ -102,7 +102,7 @@ xps_parse_image_brush(xps_document *doc, const fz_matrix *ctm, const fz_rect *ar } fz_catch(doc->ctx) { - /* FIXME: TryLater ? */ + fz_rethrow_if(doc->ctx, FZ_ERROR_TRYLATER); fz_warn(doc->ctx, "cannot find image source"); return; } @@ -117,7 +117,7 @@ xps_parse_image_brush(xps_document *doc, const fz_matrix *ctm, const fz_rect *ar } fz_catch(doc->ctx) { - /* FIXME: TryLater ? */ + fz_rethrow_if(doc->ctx, FZ_ERROR_TRYLATER); fz_warn(doc->ctx, "cannot decode image resource"); return; } -- cgit v1.2.3