We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87809a4 commit 849a4b7Copy full SHA for 849a4b7
Desktop.Win/Services/ScreenCapturerWin.cs
@@ -103,6 +103,11 @@ public Bitmap GetNextFrame()
103
{
104
var (result, frame) = GetDirectXFrame();
105
106
+ if (result == GetDirectXFrameResult.Timeout)
107
+ {
108
+ return null;
109
+ }
110
+
111
if (result == GetDirectXFrameResult.Success)
112
113
return frame;
@@ -209,7 +214,7 @@ private Bitmap GetBitBltFrame()
209
214
var texture2D = _directxScreens[SelectedScreen].Texture2D;
210
215
211
216
// Try to get duplicated frame within given time is ms
212
- var result = duplicatedOutput.TryAcquireNextFrame(100,
217
+ var result = duplicatedOutput.TryAcquireNextFrame(500,
213
218
out var duplicateFrameInformation,
219
out var screenResource);
220
0 commit comments