hex/crates/capture
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 9ca6bf8d77
capture: name why a capture has no screen on linux (#1709)
* capture: name why a capture has no screen on linux

A Linux capture with no screen frames was saved with the generic "the
screen recorded no frames" even when the screen source had failed, so the
summary blamed an empty screen instead of naming the real reason.

The failure is now kept when the person stops the capture rather than
dropped, so it survives into the stop. A PipeWire stream that sends no
frames fails with that reason (or says the stream sent no frames), an X11
sampler that grabs nothing fails instead of returning quietly, and the
summary's no-screen reason comes from the reason recorded for the capture.

The PipeWire buffers param also asks for at least two buffers, four
preferred, since `newest_locked` holds the last one until the next frame
arrives and a single buffer would stall.

* capture: keep the generic reason for an early x11 stop, document early stream failure

An X11 sampler only grabs nothing when the person stopped before its first grab, so it returns quietly again and the generic no-frames reason stands. The test now checks the source's failure is kept and, on Linux, that no failure falls back to the platform's literal reason.
2026-11-11 20:56:55 -05:00
..
helper feat(screenshots): record the screen, and keep captures until you close them (#1371) 2026-11-09 08:18:56 -08:00
src capture: name why a capture has no screen on linux (#1709) 2026-11-11 20:56:55 -05:00
build.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
Cargo.toml Annotate on X11: record the screen and areas without a ScreenCast portal (#690) (#694) 2026-10-31 18:19:36 -04:00