msdkh264dec: report error to user
authorHaihao Xiang <haihao.xiang@intel.com>
Fri, 6 Dec 2019 04:48:37 +0000 (12:48 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 28 Apr 2021 08:30:38 +0000 (08:30 +0000)
commit5d891eb40c960552810f3220e93c637b8f6a3e4a
treec837af01f4a9dab94c055ece1d29ee560dddb7c3
parentb6eca795572d395a9f8bb83cc382c845020d120e
msdkh264dec: report error to user

Sometimes user want to know what the error is when decoding a stream,
This commit adds a property of report-error to msdkh264dec. When
report-error is TRUE, msdkh264dec may catch bitstream error and frame
corruption, then report the error to application by using GST_ELEMENT_ERROR

Refer to the code in
https://github.com/Intel-Media-SDK/MediaSDK/tree/master/samples

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/909>
sys/msdk/gstmsdkdec.c
sys/msdk/gstmsdkdec.h
sys/msdk/gstmsdkdecproputil.c
sys/msdk/gstmsdkdecproputil.h
sys/msdk/gstmsdkh264dec.c