mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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:
parent
199caccc41
commit
c3685bafa4
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue