d3d11: Serialize ensure_element_data() call
authorSeungha Yang <seungha@centricular.com>
Thu, 7 Jul 2022 16:30:13 +0000 (01:30 +0900)
committerSeungha Yang <seungha@centricular.com>
Thu, 7 Jul 2022 16:35:34 +0000 (01:35 +0900)
commitf3d51ef2350ca405437e35dc3c2833844364754c
tree659a24db176e0e7fc8e0a727257fde294c77e99d
parent8aeb8ea58f7d4031ca4dec14ae83c1896746c9e9
d3d11: Serialize ensure_element_data() call

It can be called any time from random thread. Thus, multiple
device objects can be created for the same physical device
if the call is not serialized, that's not a scenario we expect.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2727>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11utils.cpp