From 49acc6ec0b6c13ce9621476a12e7fdb84f6a2c21 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 18 Dec 2017 00:10:42 +1100 Subject: [PATCH] [host] dxgi: fix termination due to wait timeout --- host/Capture/DXGI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/Capture/DXGI.cpp b/host/Capture/DXGI.cpp index 2765d35c..a5fcdcce 100644 --- a/host/Capture/DXGI.cpp +++ b/host/Capture/DXGI.cpp @@ -255,7 +255,7 @@ GrabStatus DXGI::GrabFrame(FrameInfo & frame) if (status == DXGI_ERROR_WAIT_TIMEOUT) { if (!m_surfaceMapped) - break; + continue; // send the last frame again if we timeout to prevent the client stalling on restart frame.width = m_desc.Width;