va: Delay decoders downstream negotiation.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 26 Oct 2021 14:05:24 +0000 (16:05 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 29 Oct 2021 16:06:52 +0000 (16:06 +0000)
commit4a4823b9728fbb944e05d89e0fee681ab5b33e25
treefa407b281be32d7a3810459afd307e6ec8bc7299
parent5494ec38d0f6fb974aca51eb9ef5b5bbb9665ed1
va: Delay decoders downstream negotiation.

Delay decoders downstream negotiation just before an output frame
needs to be allocated.

This is required, are least for H.264 and H.265 decoders, since
codec_data might trigger a new sequence before finishing upstream
negotiation, and sink pad caps need to set before setting source pad
caps, particularly to forward HDR fields. The other decoders are
changed too in order to keep the same structure among them.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1257>
subprojects/gst-plugins-bad/sys/va/gstvah264dec.c
subprojects/gst-plugins-bad/sys/va/gstvah265dec.c
subprojects/gst-plugins-bad/sys/va/gstvampeg2dec.c
subprojects/gst-plugins-bad/sys/va/gstvavp8dec.c
subprojects/gst-plugins-bad/sys/va/gstvavp9dec.c