summaryrefslogtreecommitdiff
path: root/image/jpeg.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-02-27 20:11:39 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-02-27 20:11:39 +0000
commit86a2e0076d0789247a28f370d16583ee4fc87f05 (patch)
treeb3ae01afe554abbb0bc98787fef4cb0fe0be35ed /image/jpeg.c
parentb79dcabd41b48111733dd49fd68ab65f1b97347b (diff)
downloadnetsurf-86a2e0076d0789247a28f370d16583ee4fc87f05.tar.gz
netsurf-86a2e0076d0789247a28f370d16583ee4fc87f05.tar.bz2
Fix bug #3194007: stop emitting duplicate READY/DONE events.
* Make content handlers responsible for setting READY/DONE state & emitting events. * Stop content_convert doing this when there is a registered convert function for the content type. svn path=/trunk/netsurf/; revision=11850
Diffstat (limited to 'image/jpeg.c')
-rw-r--r--image/jpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/image/jpeg.c b/image/jpeg.c
index 4d7aa32f7..7ef621121 100644
--- a/image/jpeg.c
+++ b/image/jpeg.c
@@ -167,7 +167,8 @@ bool nsjpeg_convert(struct content *c)
width, height, size);
content__set_title(c, title);
c->size += height * rowstride;
- c->status = CONTENT_STATUS_DONE;
+ content_set_ready(c);
+ content_set_done(c);
/* Done: update status bar */
content_set_status(c, "");
return true;