diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2010-03-15 23:29:55 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-03-16 15:20:21 +0100 |
commit | bc873f71338ba5397c6e0123c3af30eb12db9a8c (patch) | |
tree | d9d80bde58d2ed4f3b111650f996fa92fdc3e314 /ext/libpng/gstpngdec.c | |
parent | d544c7b937b25023e44bee5ce615e8453b84c27c (diff) | |
download | gstreamer-plugins-good-bc873f71338ba5397c6e0123c3af30eb12db9a8c.tar.gz |
pngenc: Use png_get_io_ptr() instead of accessing io_ptr directly
Fixes #612700 (for the last time!)
Diffstat (limited to 'ext/libpng/gstpngdec.c')
-rw-r--r-- | ext/libpng/gstpngdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c index 9c4f9a3df..147dc71ae 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); |