From f4733d0af716c00618383302e2fa240bb4888e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 16 Dec 2024 19:01:15 +0000 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/ext/svtjpegxs/gstsvtjpegxsdec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-bad/ext/svtjpegxs/gstsvtjpegxsdec.c b/subprojects/gst-plugins-bad/ext/svtjpegxs/gstsvtjpegxsdec.c index 5149fa3e57..98c3033cde 100644 --- a/subprojects/gst-plugins-bad/ext/svtjpegxs/gstsvtjpegxsdec.c +++ b/subprojects/gst-plugins-bad/ext/svtjpegxs/gstsvtjpegxsdec.c @@ -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; } }