mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
pngenc: Use png_get_io_ptr() instead of accessing io_ptr directly
Fixes #612700 (for the last time!)
This commit is contained in:
parent
d544c7b937
commit
bc873f7133
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue