nvenc: Fix deadlock because of too strict buffer pool size
authorSeungha Yang <seungha@centricular.com>
Sat, 12 Mar 2022 15:17:48 +0000 (00:17 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 12 Mar 2022 16:44:44 +0000 (16:44 +0000)
commite270e2967fda061d8b07155394f039c7f451288d
treeb8be0e083bcaa8fab8704484d04754fd4ba8fd20
parent50a481939dca815a7bf91b4a02db7a501a01c14c
nvenc: Fix deadlock because of too strict buffer pool size

The pool size might need to be larger than encoding surface pool size.
Also, because we always copy input frame into internal CUDA memory,
there's no reason to restrict max size of buffer pool.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1939>
subprojects/gst-plugins-bad/sys/nvcodec/gstnvbaseenc.c