Original commit message from CVS:
* ext/libpng/gstpngdec.c:
Don't return GST_FLOW_ERROR when buffer_alloc fails - return
whatever it returned.
+2008-06-30 Jan Schmidt <jan.schmidt@sun.com>
+
+ * ext/libpng/gstpngdec.c:
+ Don't return GST_FLOW_ERROR when buffer_alloc fails - return
+ whatever it returned.
+
2008-06-29 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
* gst/avi/avi-ids.h:
/* FIXME: implement interlaced pictures */
+ /* If buffer_out doesn't exist, it means buffer_alloc failed, which
+ * will already have set the return code */
if (GST_IS_BUFFER (pngdec->buffer_out)) {
size_t offset = row_num * GST_ROUND_UP_4 (pngdec->rowbytes);
memcpy (GST_BUFFER_DATA (pngdec->buffer_out) + offset, new_row,
pngdec->rowbytes);
pngdec->ret = GST_FLOW_OK;
- } else {
- GST_LOG ("we don't have any output buffer to write this row !");
- pngdec->ret = GST_FLOW_ERROR;
}
}