h265decoder: Fix for unhandled low-delay decoding case
authorSeungha Yang <seungha@centricular.com>
Wed, 4 May 2022 15:49:27 +0000 (00:49 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 5 May 2022 14:10:39 +0000 (14:10 +0000)
commitad136cb2c5f9654ae87d2419f6f9fd31def29f3a
treeabfed41495a0a4d5763f1ef9dcc24af62897ded8
parent58c94eed8432b84115482b560702dae53acd969b
h265decoder: Fix for unhandled low-delay decoding case

Baseclass calls get_preferred_output_delay() in a chain of
sequence header parsing and then new_sequence() is called
with required DPB size (includes render-delay) information.
Thus latency query should happen before the sequence header
parsing for subclass to report required render-delay accordingly
via get_preferred_output_delay() method.
(e.g., zero delay in case of live pipeline)

This commit is to fix wrong liveness signalling in case of
upstream packetized format.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2364>
subprojects/gst-plugins-bad/gst-libs/gst/codecs/gsth265decoder.c