jpegdec: Don't use GST_FLOW_IS_FATAL()

And don't post an error message if buffer allocation failed because
of UNEXPECTED, which only means that downstream wants us to EOS now.
This commit is contained in:
Sebastian Dröge 2010-08-27 18:05:50 +02:00
parent 2f7c0d21b6
commit b606ab06e5

View file

@ -1485,7 +1485,7 @@ alloc_failed:
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)) {
if (ret != GST_FLOW_UNEXPECTED && ret != GST_FLOW_WRONG_STATE) {
GST_ELEMENT_ERROR (dec, STREAM, DECODE,
("Buffer allocation failed, reason: %s", reason),
("Buffer allocation failed, reason: %s", reason));