fix(capture): report the shared device removal cause
This commit is contained in:
1 parent
09c39e250a
commit
cee7f8c913
1 file changed
+2
@@ -2280,7 +2280,9 @@ void RunVideoCapture(ProductArguments arguments) {
|
||||
submit(input);
|
||||
}
|
||||
} catch (...) {
|
||||
const HRESULT removed = device.device->GetDeviceRemovedReason();
|
||||
cleanup();
|
||||
Check(removed, "capture-device-lost");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user