mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 23:46:43 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -983,6 +983,10 @@ gst_vulkan_encoder_create_dpb_pool (GstVulkanEncoder * self, GstCaps * caps)
|
||||||
if (!priv->started)
|
if (!priv->started)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if ((!priv->layered_dpb && priv->dpb_pool)
|
||||||
|
|| (priv->layered_dpb && priv->layered_buffer))
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
if (priv->layered_dpb) {
|
if (priv->layered_dpb) {
|
||||||
min_buffers = max_buffers = 1;
|
min_buffers = max_buffers = 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue