diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2017-08-26 15:50:03 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2017-08-26 15:50:03 +0100 |
commit | d70beb28db6f978ae9fc674640f3101e20c05bb8 (patch) | |
tree | 44eb1e63f612675d75bceebbb85fcebb44588d49 /content/handlers/image/gif.c | |
parent | aedd9b55132bb48f6d25ae4c080dc0ce71efb44d (diff) | |
download | netsurf-d70beb28db6f978ae9fc674640f3101e20c05bb8.tar.gz netsurf-d70beb28db6f978ae9fc674640f3101e20c05bb8.tar.bz2 |
Content API: Make content_broadcast take pointer to content_msg_data.
Diffstat (limited to 'content/handlers/image/gif.c')
-rw-r--r-- | content/handlers/image/gif.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/handlers/image/gif.c b/content/handlers/image/gif.c index c4f039490..9184f31ce 100644 --- a/content/handlers/image/gif.c +++ b/content/handlers/image/gif.c @@ -86,7 +86,7 @@ static nserror nsgif_create_gif_data(nsgif_content *c) c->gif = calloc(sizeof(gif_animation), 1); if (c->gif == NULL) { msg_data.error = messages_get("NoMemory"); - content_broadcast(&c->base, CONTENT_MSG_ERROR, msg_data); + content_broadcast(&c->base, CONTENT_MSG_ERROR, &msg_data); return NSERROR_NOMEM; } gif_create(c->gif, &gif_bitmap_callbacks); @@ -231,7 +231,7 @@ static void nsgif_animate(void *p) data.redraw.object_width = gif->base.width; data.redraw.object_height = gif->base.height; - content_broadcast(&gif->base, CONTENT_MSG_REDRAW, data); + content_broadcast(&gif->base, CONTENT_MSG_REDRAW, &data); } static bool nsgif_convert(struct content *c) @@ -261,7 +261,7 @@ static bool nsgif_convert(struct content *c) msg_data.error = messages_get("NoMemory"); break; } - content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + content_broadcast(c, CONTENT_MSG_ERROR, &msg_data); return false; } } while (res != GIF_OK && res != GIF_INSUFFICIENT_FRAME_DATA); @@ -270,7 +270,7 @@ static bool nsgif_convert(struct content *c) if ((gif->gif->frame_count_partial == 0) || (gif->gif->width == 0) || (gif->gif->height == 0)) { msg_data.error = messages_get("BadGIF"); - content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + content_broadcast(c, CONTENT_MSG_ERROR, &msg_data); return false; } |