nvencoder: Fix min buffers parameter of allocation query in auto GPU mode
authorSeungha Yang <seungha@centricular.com>
Fri, 3 Feb 2023 13:10:12 +0000 (22:10 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 4 Feb 2023 11:13:58 +0000 (12:13 +0100)
commit04910ac6c1a89a6130fe695c00d55e3d7be5942a
tree05bbb3831aeea659bf03aa6fc6cc71cd043ede3f
parentf7fc9fd76ecad058c4463f6ebed31e286fc96fdd
nvencoder: Fix min buffers parameter of allocation query in auto GPU mode

At the time when propose_allocation() get called, encoder session
would not be initialized yet.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3891>
subprojects/gst-plugins-bad/sys/nvcodec/gstnvencoder.cpp
subprojects/gst-plugins-bad/sys/nvcodec/gstnvencoder.h
subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264encoder.cpp
subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265encoder.cpp