Integrated: 8267819: CoInitialize/CoUninitialize should be called on same thread
Alexander Matveev
almatvee at openjdk.java.net
Thu Jun 3 21:51:01 UTC 2021
On Thu, 27 May 2021 04:18:24 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:
> JDK-8264737 introduced new code for audio device removal/arrival notifications which calls CoInitialize/CoUninitialize on separate threads. CoInitialize/CoUninitialize should be called on same thread, since initialization is per thread. Doing it on separate thread will result in unloading COM libraries on that thread and if it uses COM libraries it might not work correctly. Fixed by calling it on same thread in same way it is done in dshowwrapper.
This pull request has now been integrated.
Changeset: 47700d8e
Author: Alexander Matveev <almatvee at openjdk.org>
URL: https://git.openjdk.java.net/jfx/commit/47700d8ef0175d4b457bb658371d2da4ec0a8181
Stats: 22 lines in 2 files changed: 10 ins; 9 del; 3 mod
8267819: CoInitialize/CoUninitialize should be called on same thread
Reviewed-by: kcr, arapte
-------------
PR: https://git.openjdk.java.net/jfx/pull/521
More information about the openjfx-dev
mailing list