glfiter: Protect GstGLContext access
authorJan Schmidt <jan@centricular.com>
Thu, 5 Oct 2023 02:49:16 +0000 (13:49 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 20 Oct 2023 10:02:02 +0000 (11:02 +0100)
commit970eb963c7c7b914c7109239d652d8ee0c3f114d
tree9c64dfe1341edf73a7539e188de22a48590f3302
parent4299be47abc0a1ac9e6275586d8523eb0f3a206d
glfiter: Protect GstGLContext access

The propose and decide allocation vfuncs are called directly from
basetransform and need to use the locked accessor function for
retrieving a reliable reference to the GstGLContext (if available)

Fixes spurious crashes on shutdown during pad reconfiguration

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5518>
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglfilter.c