svtjpegxsdec: handle decode errors more gracefully

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>
This commit is contained in:
Tim-Philipp Müller 2024-12-16 19:01:15 +00:00 committed by GStreamer Marge Bot
parent 1dd4a6e832
commit f4733d0af7

View file

@ -598,9 +598,8 @@ send_packet_error:
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;
}
}