winrt: Fix Lumia 930 black viewfinder.
Add Lumia 930 to the camera texture blacklist. Task-number: QTBUG-49660 Change-Id: Icc4cdbb5e5e736b2273c46f0537a62aeaad0c605 Reviewed-by: Matti Malinen <matti.malinen@digia.com> Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
This commit is contained in:
committed by
Maurice Kalinowski
parent
4b2e4f5924
commit
1950765b65
@@ -291,8 +291,9 @@ QWinRTCameraVideoRendererControl::QWinRTCameraVideoRendererControl(const QSize &
|
||||
HString deviceModel;
|
||||
hr = deviceInfo->get_SystemProductName(deviceModel.GetAddressOf());
|
||||
Q_ASSERT_SUCCEEDED(hr);
|
||||
// Blacklist Lumia 1520
|
||||
setBlitMode(blacklisted(L"RM-937", deviceModel) ? MediaFoundation : DirectVideo);
|
||||
const bool blacklist = blacklisted(L"RM-1045", deviceModel) // Lumia 930
|
||||
|| blacklisted(L"RM-937", deviceModel); // Lumia 1520
|
||||
setBlitMode(blacklist ? MediaFoundation : DirectVideo);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user