Skip to content

Commit d57ea9b

Browse files
committed
Windows DirectX grabber: add stream guard 4
1 parent 3168060 commit d57ea9b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sources/grabber/windows/DX/DxGrabber.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,11 @@ void DxGrabber::captureFrame(DisplayHandle& display)
958958
Error(_log, "Lost DirectX capture context. Stopping.");
959959
_dxRestartNow = true;
960960
}
961+
else if (status == DXGI_ERROR_INVALID_CALL)
962+
{
963+
Error(_log, "DirectX invalid call. Stopping.");
964+
_dxRestartNow = true;
965+
}
961966
else if (display.warningCounter > 0)
962967
{
963968
Error(_log, "AcquireNextFrame failed. Reason: %i", status);

0 commit comments

Comments
 (0)