From 66a783fd01259d64dad79d7783e0a1b848bce468 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 10 Sep 2010 09:43:24 +0100 Subject: [PATCH] jpegdec: don't post an error message if buffer alloc fails with NOT_LINKED flow This is not fatal, let upstream handle it. --- ext/jpeg/gstjpegdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index 207fe8b..58d3ee1 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -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)); -- 2.7.4