fix(capture): report the shared device removal cause

This commit is contained in:
AAA committed 2026-11-01 09:29:06 -04:00
1 parent 09c39e250a
commit cee7f8c913
1 file changed
+2
+2
View File
@@ -2280,7 +2280,9 @@ void RunVideoCapture(ProductArguments arguments) {
submit(input);
}
} catch (...) {
const HRESULT removed = device.device->GetDeviceRemovedReason();
cleanup();
Check(removed, "capture-device-lost");
throw;
}
}