Skip to content

fix: bound desktop capture settings and remove a processed frame deadlock - #547

Merged
devopvoid merged 2 commits into
mainfrom
fix/desktop-capture-limits
Nov 5, 2026
Merged

devopvoid merged 2 commits into
mainfrom
fix/desktop-capture-limits

Conversation

@devopvoid

Copy link
Copy Markdown
Owner
  • setFrameRate and ScreenOptions.frameRate accept 1 to 1000. 65536 reached the capture thread as 0 and divided by zero.
  • maxSize holds both limits through one scale factor, keeping the aspect ratio.
  • The stop signal of the capture thread is atomic.
  • Processed frames are delivered without the sink monitor, which could deadlock with a detach holding the monitor of the source. The native lease keeps the source alive, and detach no longer waits for a running delivery.
  • A deferred release of a camera or desktop source leaves the capture thread, which the destructor joins.

…nal atomic

The frame rate must be 1 to 1000, as 65536 reached the capture thread as 0. One scale factor now holds both size limits, and isCapturing is atomic.
Delivering under the monitor could deadlock with a detach that holds the monitor of the source. The native lease now keeps the source alive, detach no longer waits for a running delivery, and a deferred release leaves the capture thread, which the destructor joins.
@devopvoid
devopvoid merged commit 8c02386 into main Nov 5, 2026
16 of 17 checks passed
@devopvoid
devopvoid deleted the fix/desktop-capture-limits branch November 5, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant