cuda: Protect gst_cuda_ensure_element_context() with lock
authorSeungha Yang <seungha@centricular.com>
Mon, 27 Jun 2022 11:50:15 +0000 (20:50 +0900)
committerSeungha Yang <seungha@centricular.com>
Thu, 30 Jun 2022 12:38:08 +0000 (12:38 +0000)
commitbcacfc7ced8451d09b65d1c266c0d8a4fc541a5c
treef68a5e06b63e41923c60c8a88c79f5b367703b6b
parentce82c0570ef2a007d7f996fbd36e7f9396bd7460
cuda: Protect gst_cuda_ensure_element_context() with lock

Serialize the order of context setup since it can be called
from multiple threads

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2666>
subprojects/gst-plugins-bad/gst-libs/gst/cuda/gstcudautils.c