gluploadelement: Avoid race condition of base class' context.
authorHe Junyan <junyan.he@intel.com>
Wed, 4 Nov 2020 09:02:13 +0000 (17:02 +0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 5 Nov 2020 04:08:13 +0000 (04:08 +0000)
commite8bb524278c7c5ac70a11a52246042df12bbb8cd
tree282040da9de570a45f34b2407c5120838e0531e0
parent941629291bb1e2e679f8fbd81b9bc483effdce99
gluploadelement: Avoid race condition of base class' context.

The base class' context may change, we should use the common API
with lock to access it, rather than the just directly access the
struct field.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/916>
ext/gl/gstgluploadelement.c