jpegdec: don't post an error message if buffer alloc fails with NOT_LINKED flow

This is not fatal, let upstream handle it.
This commit is contained in:
Tim-Philipp Müller 2010-09-10 09:43:24 +01:00
parent 8f2d254e24
commit 66a783fd01

View file

@ -1486,7 +1486,8 @@ alloc_failed:
GST_DEBUG_OBJECT (dec, "failed to alloc buffer, reason %s", reason);
/* Reset for next time */
jpeg_abort_decompress (&dec->cinfo);
if (ret != GST_FLOW_UNEXPECTED && ret != GST_FLOW_WRONG_STATE) {
if (ret != GST_FLOW_UNEXPECTED && ret != GST_FLOW_WRONG_STATE &&
ret != GST_FLOW_NOT_LINKED) {
GST_ELEMENT_ERROR (dec, STREAM, DECODE,
("Buffer allocation failed, reason: %s", reason),
("Buffer allocation failed, reason: %s", reason));