summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/camera-names.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-compat/camera-names.cpp')
-rw-r--r--opentrack-compat/camera-names.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentrack-compat/camera-names.cpp b/opentrack-compat/camera-names.cpp
index a83a6536..f17a259a 100644
--- a/opentrack-compat/camera-names.cpp
+++ b/opentrack-compat/camera-names.cpp
@@ -32,7 +32,7 @@ OPENTRACK_COMPAT_EXPORT QList<QString> get_camera_names()
#if defined(_WIN32)
// Create the System Device Enumerator.
HRESULT hr;
- hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
+ hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
if (FAILED(hr))
qDebug() << "failed CoInitializeEx" << hr << GetLastError();
ICreateDevEnum *pSysDevEnum = NULL;