From cee7f8c9138e0ffd3fba8f1d6bb461de96841b90 Mon Sep 17 00:00:00 2001 From: AAA <35992542+TNTcraftHIM@users.noreply.github.com> Date: Sun, 1 Nov 2026 09:29:06 -0400 Subject: [PATCH] fix(capture): report the shared device removal cause --- native/capture/windows/main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } }