Skip to content

Commit f7b0c4d

Browse files
committed
fix(Core): increase WindowsCapture CaptureWindow timeout
1 parent 32de004 commit f7b0c4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SnapX.Core/SharpCapture/Windows/WindowsCapture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ private static ID3D11Texture2D Texture2DFromSurface(IDirect3DSurface surface, ID
275275
session.IsCursorCaptureEnabled = true;
276276
session.StartCapture();
277277
DebugHelper.WriteLine("Waiting for frame...");
278-
using var result = await asyncFrame.Task.WaitAsync(TimeSpan.FromSeconds(1));
278+
using var result = await asyncFrame.Task.WaitAsync(TimeSpan.FromSeconds(10));
279279
if (result == null)
280280
{
281281
DebugHelper.WriteLine($"The frame from framePool ({framePool}) was null for {captureItem} :(");

0 commit comments

Comments
 (0)