From bc873f71338ba5397c6e0123c3af30eb12db9a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Mon, 15 Mar 2010 23:29:55 +0300 Subject: [PATCH] pngenc: Use png_get_io_ptr() instead of accessing io_ptr directly Fixes #612700 (for the last time!) --- ext/libpng/gstpngdec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c index 9c4f9a3df2..147dc71ae2 100644 --- a/ext/libpng/gstpngdec.c +++ b/ext/libpng/gstpngdec.c @@ -189,7 +189,7 @@ user_info_callback (png_structp png_ptr, png_infop info) size_t buffer_size; GstBuffer *buffer = NULL; - pngdec = GST_PNGDEC (png_ptr->io_ptr); + pngdec = GST_PNGDEC (png_get_io_ptr (png_ptr)); GST_LOG ("info ready"); @@ -228,7 +228,7 @@ user_endrow_callback (png_structp png_ptr, png_bytep new_row, { GstPngDec *pngdec = NULL; - pngdec = GST_PNGDEC (png_ptr->io_ptr); + pngdec = GST_PNGDEC (png_get_io_ptr (png_ptr)); /* FIXME: implement interlaced pictures */ @@ -275,7 +275,7 @@ user_end_callback (png_structp png_ptr, png_infop info) { GstPngDec *pngdec = NULL; - pngdec = GST_PNGDEC (png_ptr->io_ptr); + pngdec = GST_PNGDEC (png_get_io_ptr (png_ptr)); GST_LOG_OBJECT (pngdec, "and we are done reading this image"); @@ -310,7 +310,7 @@ user_read_data (png_structp png_ptr, png_bytep data, png_size_t length) GstFlowReturn ret = GST_FLOW_OK; guint size; - pngdec = GST_PNGDEC (png_ptr->io_ptr); + pngdec = GST_PNGDEC (png_get_io_ptr (png_ptr)); GST_LOG ("reading %" G_GSIZE_FORMAT " bytes of data at offset %d", length, pngdec->offset);