From b606ab06e516e9dd8c6667289254d92ec36878b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 27 Aug 2010 18:05:50 +0200 Subject: [PATCH] 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. --- ext/jpeg/gstjpegdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index 333658eeed..5f85ac8d77 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -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));