mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue