diff --git a/native/capture/windows/main.cpp b/native/capture/windows/main.cpp index 6e3a8e0c8..ecd1357a0 100644 --- a/native/capture/windows/main.cpp +++ b/native/capture/windows/main.cpp @@ -2280,7 +2280,9 @@ void RunVideoCapture(ProductArguments arguments) { submit(input); } } catch (...) { + const HRESULT removed = device.device->GetDeviceRemovedReason(); cleanup(); + Check(removed, "capture-device-lost"); throw; } }