Use GST_VIDEO_DECODER_ERROR instead of just erroring out
unconditionally, so that the error handling behaviour is
determined by the "max-errors" property and we'll just
continue after decoding errors now instead of erroring out.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8163>
get_frame_error:
{
- GST_ELEMENT_ERROR (jxsdec, STREAM, DECODE, (NULL),
- ("Error decoding image, error code 0x%08x", dec_ret));
- flow = GST_FLOW_ERROR;
+ GST_VIDEO_DECODER_ERROR (jxsdec, 1, STREAM, DECODE,
+ (NULL), ("Error decoding image, error code 0x%08x", dec_ret), flow);
goto out_unmap;
}
}