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.
This commit is contained in:
Matthew Waters 2019-12-04 19:29:38 +11:00 committed by GStreamer Merge Bot
parent 199caccc41
commit c3685bafa4

View file

@ -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;
}