From c3685bafa42fc147db324642d41fdbf0b19b11e5 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 4 Dec 2019 19:29:38 +1100 Subject: [PATCH] vulkanviewconvert: clear the cached uniforms on caps change Caps changes can change the output/input layout which needs to be reflected in the input uniforms to the shader. --- ext/vulkan/vkviewconvert.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/vulkan/vkviewconvert.c b/ext/vulkan/vkviewconvert.c index dae6bb590f..75b711a67a 100644 --- a/ext/vulkan/vkviewconvert.c +++ b/ext/vulkan/vkviewconvert.c @@ -1877,6 +1877,10 @@ gst_vulkan_view_convert_set_caps (GstBaseTransform * bt, GstCaps * in_caps, &vfilter->out_info)) return FALSE; + if (conv->uniform) + gst_memory_unref (conv->uniform); + conv->uniform = NULL; + return TRUE; }