codecs: Use GST_VIDEO_DECODER_ERROR() only for decoding error case
authorSeungha Yang <seungha@centricular.com>
Wed, 6 Oct 2021 13:06:44 +0000 (22:06 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 7 Oct 2021 06:48:46 +0000 (06:48 +0000)
commit88437a9c9b03604e1918bf5dfd8738d154ce30fb
tree7aee2d9616d013f8d642f25e0bd479a1db49615c
parente31b797c0513ce52e7f9af91547babcee6e0fd31
codecs: Use GST_VIDEO_DECODER_ERROR() only for decoding error case

The GST_VIDEO_DECODER_ERROR() should be used only for robust/error-resilient
decoding purpose. Any other error codes such as not-negotiated or flushing
should be returned without modified for upstream to be able to handle
it immediately. (for example, application might want to try other
decoder element on not-negotiated)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1070>
subprojects/gst-plugins-bad/gst-libs/gst/codecs/gstav1decoder.c
subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth264decoder.c
subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth265decoder.c
subprojects/gst-plugins-bad/gst-libs/gst/codecs/gstmpeg2decoder.c
subprojects/gst-plugins-bad/gst-libs/gst/codecs/gstvp8decoder.c
subprojects/gst-plugins-bad/gst-libs/gst/codecs/gstvp9decoder.c