mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
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/1942>
This commit is contained in:
parent
7fac3c2c29
commit
4bd486b9b7
1 changed files with 2 additions and 2 deletions
|
@ -667,10 +667,10 @@ gst_nv_base_enc_propose_allocation (GstVideoEncoder * enc, GstQuery * query)
|
|||
|
||||
config = gst_buffer_pool_get_config (pool);
|
||||
gst_buffer_pool_config_set_params (config, caps, GST_VIDEO_INFO_SIZE (&info),
|
||||
nvenc->items->len, nvenc->items->len);
|
||||
nvenc->items->len, 0);
|
||||
|
||||
gst_query_add_allocation_pool (query, pool, GST_VIDEO_INFO_SIZE (&info),
|
||||
nvenc->items->len, nvenc->items->len);
|
||||
nvenc->items->len, 0);
|
||||
gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_VIDEO_META);
|
||||
gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue