jpegdecoder: return the real error of decode_scan and decode_frame.
authorHe Junyan <junyan.he@intel.com>
Thu, 25 Aug 2022 07:28:21 +0000 (15:28 +0800)
committerHe Junyan <junyan.he@intel.com>
Thu, 25 Aug 2022 09:42:55 +0000 (17:42 +0800)
commit67eb1223c0c1baab539dba6aabbf2765d0aa52ef
treee7366694485d11de52c53882f9b445d3f1e3f7d8
parente8666a7f943b6e0f95b9d95d543f6b1cb9b3f7e2
jpegdecoder: return the real error of decode_scan and decode_frame.

The current handle_frame() does not return the real error that happens
in decode_scan and decode_frame, which makes the pipeline continue with
the error and may trigger asserting later.

We also return the error when decode_quant_table or decode_huffman_table
fails.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2938>
subprojects/gst-plugins-bad/sys/va/gstjpegdecoder.c