d3d11device: Use WIN32 critical section API directly
authorSeungha Yang <seungha@centricular.com>
Fri, 5 Aug 2022 19:57:49 +0000 (04:57 +0900)
committerSeungha Yang <seungha@centricular.com>
Fri, 5 Aug 2022 20:12:41 +0000 (05:12 +0900)
commitcf64c9f58847a1da8bf54d7c2f4d18dcd87e1f38
tree2cf70bfe73948ac3d54fe55b9e1c20382c559329
parent67ce55f33eb3f63080de0793b517cc85fdea9f30
d3d11device: Use WIN32 critical section API directly

GLib's GRecMutex will allocate another heap memory for CRITICAL_SECTION
struct and g_rec_mutex_lock/g_rec_mutex_unlock use WIN32 APIs actually.
We don't need such intermediate function calls and redundant heap allocation.
Just call WIN32 APIs directly.

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