mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 13:11:06 +00:00
vkimagebufferpool: reset the number of profiles at set_config()
Virtual method set_config() can be called several times, and if the number of profiles counter isn't reset the pool will reach an error state. The purpose of number of profiles is to check the number of valid vulkan video profiles (two in the case of transcoding use-case, for example) so it's local to set_config() virtual method. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7247>
This commit is contained in:
parent
d8e384085a
commit
541e2e93ca
1 changed files with 2 additions and 0 deletions
|
@ -208,6 +208,8 @@ gst_vulkan_image_buffer_pool_set_config (GstBufferPool * pool,
|
||||||
#if GST_VULKAN_HAVE_VIDEO_EXTENSIONS
|
#if GST_VULKAN_HAVE_VIDEO_EXTENSIONS
|
||||||
{
|
{
|
||||||
guint n = 0;
|
guint n = 0;
|
||||||
|
|
||||||
|
priv->n_profiles = 0;
|
||||||
if (decode_caps && ((priv->usage
|
if (decode_caps && ((priv->usage
|
||||||
& (VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR
|
& (VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR
|
||||||
| VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR)) != 0)) {
|
| VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR)) != 0)) {
|
||||||
|
|
Loading…
Reference in a new issue