Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fall back to chunked mode for unknown frame buffer sizes #62

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

nathanbabcock
Copy link
Owner

This PR revamps spawn_stdout_thread to make the following behavior more explicit and clear:

  • If a frame buffer size can't be calculated, fall back to the variable size "chunked mode"
  • Allocate a single buffer for chunked mode instead of mixing it in with the known-size frame buffers
  • Check for a previously implicit assumption: if multiple outputs are interleaved on stdout, they must share the same framerate. Otherwise, they also fall back to chunked mode.

Also adds some unit tests, including coverage for the bug fixed by #61

@nathanbabcock nathanbabcock merged commit 03c81aa into main Nov 6, 2024
3 checks passed
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