https://bugs.winehq.org/show_bug.cgi?id=30557
--- Comment #110 from Andrew Eikum aeikum@codeweavers.com --- Unfortunately, the approach in my patch isn't sufficient. gstreamer has other threads which can call Wine code that are not able to be overridden. Additionally, plugins may make their own threads which gstreamer has no way of overriding.
Unless glib gives us the custom threading API back, I'm afraid overriding pthreads is our only option.