Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

PNG-rework: forward png flush output through to i_io_flush()

  • Loading branch information...
commit 6352c169f4c4abf9b7fa129b6040e54f6a00c004 1 parent d961033
@tonycoz authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 PNG/impng.c
View
4 PNG/impng.c
@@ -55,7 +55,9 @@ wiol_write_data(png_structp png_ptr, png_bytep data, png_size_t length) {
static void
wiol_flush_data(png_structp png_ptr) {
- /* XXX : This needs to be added to the io layer */
+ io_glue *ig = png_get_io_ptr(png_ptr);
+ if (!i_io_flush(ig))
+ png_error(png_ptr, "Error flushing output");
}
static void
Please sign in to comment.
Something went wrong with that request. Please try again.