The vadecoder's srcpad_caps and sinkpad_caps pointers are outside of the
mutex protection. Just make all operation for them atomic.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1957>
g_return_val_if_fail (GST_IS_VA_DECODER (self), FALSE);
- if (self->srcpad_caps)
+ if (g_atomic_pointer_get (&self->srcpad_caps))
return gst_caps_ref (self->srcpad_caps);
if (_get_codec_caps (self))
{
g_return_val_if_fail (GST_IS_VA_DECODER (self), FALSE);
- if (self->sinkpad_caps)
+ if (g_atomic_pointer_get (&self->sinkpad_caps))
return gst_caps_ref (self->sinkpad_caps);
if (_get_codec_caps (self))