vkencoder-private: early return if dpb pool or dpb buffer already exist
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7974>
This commit is contained in:
parent
52bd1931b8
commit
066144f78c
@ -983,6 +983,10 @@ gst_vulkan_encoder_create_dpb_pool (GstVulkanEncoder * self, GstCaps * caps)
|
||||
if (!priv->started)
|
||||
return FALSE;
|
||||
|
||||
if ((!priv->layered_dpb && priv->dpb_pool)
|
||||
|| (priv->layered_dpb && priv->layered_buffer))
|
||||
return TRUE;
|
||||
|
||||
if (priv->layered_dpb) {
|
||||
min_buffers = max_buffers = 1;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user