diff options
Diffstat (limited to 'cv/camera-dialog.cpp')
-rw-r--r-- | cv/camera-dialog.cpp | 2 |
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(); } |