diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-09-10 09:43:24 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-09-12 14:54:20 +0100 |
commit | 66a783fd01259d64dad79d7783e0a1b848bce468 (patch) | |
tree | 991c247256bec050953b4028f61201760585a868 | |
parent | 8f2d254e24169012b3f6b09f4cce1d1ce014a28d (diff) |
jpegdec: don't post an error message if buffer alloc fails with NOT_LINKED flow
This is not fatal, let upstream handle it.
-rw-r--r-- | ext/jpeg/gstjpegdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index 207fe8b7c..58d3ee1fa 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)); |