Partial workaround for #12588. Cameras are now gone from settings though after playing one game...

This commit is contained in:
Henrik Rydgård 2020-01-21 20:57:26 +01:00
parent 81b42df7c2
commit 97c81ac5a2

View File

@ -483,7 +483,7 @@ bool WindowsCaptureDevice::start() {
}
if (!m_pReader)
hr = -1;
hr = E_FAIL;
if (SUCCEEDED(hr)) {
switch (type) {
@ -730,6 +730,9 @@ void WindowsCaptureDevice::messageHandler() {
CoUninitialize();
updateState(CAPTUREDEVIDE_STATE::SHUTDOWN);
// Make sure we don't try to loop through the devices later in getDeviceList()...
param = {};
}
//-----------------------------------------------------------------------------