pngenc: Use png_get_io_ptr() instead of accessing io_ptr directly

Fixes #612700 (for the last time!)
This commit is contained in:
Руслан Ижбулатов 2010-03-15 23:29:55 +03:00 committed by Sebastian Dröge
parent d544c7b937
commit bc873f7133

View file

@ -189,7 +189,7 @@ user_info_callback (png_structp png_ptr, png_infop info)
size_t buffer_size; size_t buffer_size;
GstBuffer *buffer = NULL; GstBuffer *buffer = NULL;
pngdec = GST_PNGDEC (png_ptr->io_ptr); pngdec = GST_PNGDEC (png_get_io_ptr (png_ptr));
GST_LOG ("info ready"); GST_LOG ("info ready");
@ -228,7 +228,7 @@ user_endrow_callback (png_structp png_ptr, png_bytep new_row,
{ {
GstPngDec *pngdec = NULL; GstPngDec *pngdec = NULL;
pngdec = GST_PNGDEC (png_ptr->io_ptr); pngdec = GST_PNGDEC (png_get_io_ptr (png_ptr));
/* FIXME: implement interlaced pictures */ /* FIXME: implement interlaced pictures */
@ -275,7 +275,7 @@ user_end_callback (png_structp png_ptr, png_infop info)
{ {
GstPngDec *pngdec = NULL; 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"); 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; GstFlowReturn ret = GST_FLOW_OK;
guint size; 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, GST_LOG ("reading %" G_GSIZE_FORMAT " bytes of data at offset %d", length,
pngdec->offset); pngdec->offset);