summaryrefslogtreecommitdiffhomepage
path: root/cv/camera-dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-09 17:03:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-10 10:41:58 +0200
commitc160afe719611b27910d8347ece6e49ee2a3b32f (patch)
tree3af84e3136be3e5f803e215850d3be8c5b72e96e /cv/camera-dialog.cpp
parentd8ebca7a6bb8cbff2f7ed5d62a6695695c0809e4 (diff)
change COM threading apartmentthreaded -> multithreaded
Diffstat (limited to 'cv/camera-dialog.cpp')
-rw-r--r--cv/camera-dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cv/camera-dialog.cpp b/cv/camera-dialog.cpp
index f2cdf9db..1be54ece 100644
--- a/cv/camera-dialog.cpp
+++ b/cv/camera-dialog.cpp
@@ -23,7 +23,7 @@ void camera_dialog::maybe_grab_frame(cv::VideoCapture& cap)
#ifdef _WIN32
void camera_dialog::init_com_threading()
{
- HRESULT hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
+ HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
if (FAILED(hr))
qDebug() << "failed CoInitializeEx" << hr << "code" << GetLastError();
}