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:
parent
2f7c0d21b6
commit
b606ab06e5
@ -1485,7 +1485,7 @@ alloc_failed:
|
|||||||
GST_DEBUG_OBJECT (dec, "failed to alloc buffer, reason %s", reason);
|
GST_DEBUG_OBJECT (dec, "failed to alloc buffer, reason %s", reason);
|
||||||
/* Reset for next time */
|
/* Reset for next time */
|
||||||
jpeg_abort_decompress (&dec->cinfo);
|
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,
|
GST_ELEMENT_ERROR (dec, STREAM, DECODE,
|
||||||
("Buffer allocation failed, reason: %s", reason),
|
("Buffer allocation failed, reason: %s", reason),
|
||||||
("Buffer allocation failed, reason: %s", reason));
|
("Buffer allocation failed, reason: %s", reason));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user