mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
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:
parent
1dd4a6e832
commit
f4733d0af7
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue