Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/afbd9cd5e83371cca74bd73b7445949ba52a7121
...commit
http://git.netsurf-browser.org/netsurf.git/commit/afbd9cd5e83371cca74bd73b7445949ba52a7121
...tree
http://git.netsurf-browser.org/netsurf.git/tree/afbd9cd5e83371cca74bd73b7445949ba52a7121
The branch, master has been updated
via afbd9cd5e83371cca74bd73b7445949ba52a7121 (commit)
from 7148d165a57695a6ba6c1c66f883d644d47675ba (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=afbd9cd5e83371cca74bd73b7445949ba52a7121
commit afbd9cd5e83371cca74bd73b7445949ba52a7121
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
gif: Mark gifs as complete after scanning source data
This allows libnsgif to distinguish between awaiting more
data, and a broken truncated GIF. In the latter case we
can display what we have.
diff --git a/content/handlers/image/gif.c b/content/handlers/image/gif.c
index deabd0a..0b577f0 100644
--- a/content/handlers/image/gif.c
+++ b/content/handlers/image/gif.c
@@ -233,10 +233,12 @@ static bool gif_convert(struct content *c)
/* Initialise the GIF */
gif_err = nsgif_data_scan(gif->gif, size, data);
if (gif_err != NSGIF_OK) {
- NSLOG(netsurf, DEBUG, "%s", nsgif_strerror(gif_err));
- /* Not fatal unless er have no frames. */
+ NSLOG(netsurf, INFO, "nsgif scan: %s", nsgif_strerror(gif_err));
+ /* Not fatal unless we have no frames. */
}
+ nsgif_data_complete(gif->gif);
+
gif_info = nsgif_get_info(gif->gif);
assert(gif_info != NULL);
-----------------------------------------------------------------------
Summary of changes:
content/handlers/image/gif.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/content/handlers/image/gif.c b/content/handlers/image/gif.c
index deabd0a..0b577f0 100644
--- a/content/handlers/image/gif.c
+++ b/content/handlers/image/gif.c
@@ -233,10 +233,12 @@ static bool gif_convert(struct content *c)
/* Initialise the GIF */
gif_err = nsgif_data_scan(gif->gif, size, data);
if (gif_err != NSGIF_OK) {
- NSLOG(netsurf, DEBUG, "%s", nsgif_strerror(gif_err));
- /* Not fatal unless er have no frames. */
+ NSLOG(netsurf, INFO, "nsgif scan: %s", nsgif_strerror(gif_err));
+ /* Not fatal unless we have no frames. */
}
+ nsgif_data_complete(gif->gif);
+
gif_info = nsgif_get_info(gif->gif);
assert(gif_info != NULL);
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]