diff options
author | Samuel Nevala <samuel.nevala@intopalo.com> | 2015-10-01 18:54:42 +0300 |
---|---|---|
committer | Samuel Nevala <samuel.nevala@intopalo.com> | 2015-10-01 05:01:37 +0000 |
commit | c5ebfb0c19deff34eea5099ba59750b746257d71 (patch) | |
tree | ec2e175452b9e0050523eab0346c592263cc1eba | |
parent | 12512d557f976983117bed8a35d585a902893b0b (diff) | |
download | qtmultimedia-c5ebfb0c19deff34eea5099ba59750b746257d71.tar.gz |
winrt: Fix frozen UI caused by camera search and lock focus.
Instead of yielding thread process events while waiting for focus to
complete.
Change-Id: I6b5f08bc175af37430c851f151fce5c3bfe238ad
Task-Id: QTBUG-48534
Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
-rw-r--r-- | src/plugins/winrt/qwinrtcameracontrol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/winrt/qwinrtcameracontrol.cpp b/src/plugins/winrt/qwinrtcameracontrol.cpp index 764c23860..d20955da3 100644 --- a/src/plugins/winrt/qwinrtcameracontrol.cpp +++ b/src/plugins/winrt/qwinrtcameracontrol.cpp @@ -1118,7 +1118,7 @@ bool QWinRTCameraControl::focus() ComPtr<IAsyncAction> op; HRESULT hr = d->focusControl->FocusAsync(&op); Q_ASSERT_SUCCEEDED(hr); - hr = QWinRTFunctions::await(op); + hr = QWinRTFunctions::await(op, QWinRTFunctions::ProcessThreadEvents); Q_ASSERT_SUCCEEDED(hr); return hr == S_OK; } |