gluploadelement: Avoid race condition in propose_allocation().
authorHe Junyan <junyan.he@intel.com>
Wed, 4 Nov 2020 15:05:27 +0000 (23:05 +0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 5 Nov 2020 04:08:13 +0000 (04:08 +0000)
commit297a1555bfe0ff738d7f94e65b5cbdb9963d81f1
tree4f5f3fa463a2d94051397701745da114598cdb8c
parente8bb524278c7c5ac70a11a52246042df12bbb8cd
gluploadelement: Avoid race condition in propose_allocation().

The inside upload and context may have race condition in the function
of propose_allocation(). They may be destroyed while this function is
stilling using it.

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