Commit ee21b60c authored by Edward Hervey's avatar Edward Hervey 🤘
Browse files

ext/libpng/gstpngdec.c: Fix build on macosx.

Original commit message from CVS:
* ext/libpng/gstpngdec.c: (user_endrow_callback), (user_read_data):
Fix build on macosx.
parent 62e85e8f
2007-05-16 Edward Hervey <edward@fluendo.com>
* ext/libpng/gstpngdec.c: (user_endrow_callback), (user_read_data):
Fix build on macosx.
2007-05-16 Sebastian Dröge <slomo@circular-chaos.org> 2007-05-16 Sebastian Dröge <slomo@circular-chaos.org>
* ext/raw1394/gstdv1394src.c: (gst_dv1394src_uri_set_uri): * ext/raw1394/gstdv1394src.c: (gst_dv1394src_uri_set_uri):
......
...@@ -221,8 +221,8 @@ user_endrow_callback (png_structp png_ptr, png_bytep new_row, ...@@ -221,8 +221,8 @@ user_endrow_callback (png_structp png_ptr, png_bytep new_row,
if (GST_IS_BUFFER (pngdec->buffer_out)) { if (GST_IS_BUFFER (pngdec->buffer_out)) {
size_t offset = row_num * GST_ROUND_UP_4 (pngdec->rowbytes); size_t offset = row_num * GST_ROUND_UP_4 (pngdec->rowbytes);
GST_LOG ("got row %u, copying in buffer %p at offset %d", (guint) row_num, GST_LOG ("got row %u, copying in buffer %p at offset %" G_GSIZE_FORMAT,
pngdec->buffer_out, offset); (guint) row_num, pngdec->buffer_out, offset);
memcpy (GST_BUFFER_DATA (pngdec->buffer_out) + offset, new_row, memcpy (GST_BUFFER_DATA (pngdec->buffer_out) + offset, new_row,
pngdec->rowbytes); pngdec->rowbytes);
pngdec->ret = GST_FLOW_OK; pngdec->ret = GST_FLOW_OK;
...@@ -307,7 +307,8 @@ user_read_data (png_structp png_ptr, png_bytep data, png_size_t length) ...@@ -307,7 +307,8 @@ user_read_data (png_structp png_ptr, png_bytep data, png_size_t length)
pngdec = GST_PNGDEC (png_ptr->io_ptr); pngdec = GST_PNGDEC (png_ptr->io_ptr);
GST_LOG ("reading %d bytes of data at offset %d", length, pngdec->offset); GST_LOG ("reading %" G_GSIZE_FORMAT " bytes of data at offset %d", length,
pngdec->offset);
ret = gst_pad_pull_range (pngdec->sinkpad, pngdec->offset, length, &buffer); ret = gst_pad_pull_range (pngdec->sinkpad, pngdec->offset, length, &buffer);
if ((ret != GST_FLOW_OK) || (GST_BUFFER_SIZE (buffer) != length)) if ((ret != GST_FLOW_OK) || (GST_BUFFER_SIZE (buffer) != length))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment