codecs: h265decoder: Use GstFlowReturn everywhere
authorSeungha Yang <seungha@centricular.com>
Mon, 20 Sep 2021 15:23:13 +0000 (00:23 +0900)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Mon, 4 Oct 2021 20:56:46 +0000 (20:56 +0000)
commit5b405d15858b49c9356923fb39fb08b3aeed5f15
tree6fab630247591ce190fc70414e7d2ba2e257f2f1
parent05496df0d180cf7f264456b6863f2a7b3507d1e4
codecs: h265decoder: Use GstFlowReturn everywhere

boolean return value is not sufficient for representing the reason
of error in most cases. For instance, any errors around new_sequence()
would mean negotiation error, not just *ERROR*.
And some subclasses will allocate buffer/memory/surface on new_picture()
but it could be failed because of expected error, likely flushing

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1019>
subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth265decoder.c
subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth265decoder.h
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11h265dec.cpp
subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265dec.c
subprojects/gst-plugins-bad/sys/va/gstvah265dec.c