mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
ext/jpeg/gstjpegdec.c: After a failed buffer alloc, we need to abort the jpeg decoding (it started when parsing heade...
Original commit message from CVS: * ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain): After a failed buffer alloc, we need to abort the jpeg decoding (it started when parsing headers to figure out how many bytes we need to request downstream).
This commit is contained in:
parent
d2eeafad7c
commit
3397426d9f
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-06-18 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain):
|
||||
After a failed buffer alloc, we need to abort the jpeg decoding (it
|
||||
started when parsing headers to figure out how many bytes we need
|
||||
to request downstream).
|
||||
|
||||
2006-06-18 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
Patch by: Mark Nauwelaerts <manauw at skynet be>
|
||||
|
|
|
@ -1046,6 +1046,8 @@ alloc_failed:
|
|||
reason = gst_flow_get_name (ret);
|
||||
|
||||
GST_DEBUG_OBJECT (dec, "failed to alloc buffer, reason %s", reason);
|
||||
/* Reset for next time */
|
||||
jpeg_abort_decompress (&dec->cinfo);
|
||||
if (GST_FLOW_IS_FATAL (ret)) {
|
||||
GST_ELEMENT_ERROR (dec, STREAM, DECODE,
|
||||
("Buffer allocation failed, reason: %s", reason),
|
||||
|
|
Loading…
Reference in a new issue