va: Use the GstVaSurfaceCopy of the allocator atomically.
authorHe Junyan <junyan.he@intel.com>
Tue, 23 Nov 2021 13:10:55 +0000 (21:10 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 29 Nov 2021 19:25:31 +0000 (19:25 +0000)
commit954f7cf88c5367e1e992a320cbb8ce0001c1951b
tree64e5ed64688cf3ba19379b0724cac06789203a77
parent7f31dcf0842c5057111174b61b899790afd2f984
va: Use the GstVaSurfaceCopy of the allocator atomically.

The mem_copy() of the allocator can be called simultaneously from
different threads. We should use atomic pointer operations to create
and use the GstVaSurfaceCopy of the allocator.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1373>
subprojects/gst-plugins-bad/sys/va/gstvaallocator.c