Permalink
Browse files

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

  • Loading branch information...
1 parent d961033 commit 6352c169f4c4abf9b7fa129b6040e54f6a00c004 @tonycoz committed Apr 15, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 PNG/impng.c
View
@@ -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

0 comments on commit 6352c16

Please sign in to comment.