Commits
Commits on
dff7d843f3d0fedec086d9c2e7e2b68304835ed5Filtered to crates/engine/tests/saveload.rsClear filter2026-08-10
🐛 fix(engine): a refused project load cannot hang on its own decoderAhmet Kaan Gümüş · 771cd4a
🐛 fix(engine): a refused project load cannot hang on its own decoder `open_project` starts decoding source 0 before it validates anything, so by the time a later source is refused that worker has filled the two-frame channel and parked in `send`. The receiver and the worker were two locals, and locals drop in reverse order of declaration: the worker joined a decode thread that only the receiver beside it could ever wake. The app froze on a bad project file instead of showing the error. The two are one value now. `FrameStream` holds the receiver first and the worker second, and Rust drops fields in declaration order, so the disconnect always precedes the join -- in an early return, on an unwind, and in call sites not written yet. Nothing on the seek path changes: `start_span` still installs the new receiver and parks the old worker in the retire list without ever joining. The device moves below the validation for the same reason. Its feeder thread outlives the `Audio` value and only a session's `drop` retires it, so a refusal above that line left a PipeWire stream and a thread behind for a project that never opened. Tests: dropping a stream whose frames nobody took returns instead of hanging (10 s bound; hangs if the two fields are swapped), and the refusal path itself with enough sources that the park is certain -- 60 s hang before the fix, 0.04 s after.
✅ test(engine): the crafted overflow line at the open_project doorAhmet Kaan Gümüş · 85c5140Browse files
✨ feat(engine): video+audio lanes with offset-placed clips, gaps, .edith v2Ahmet Kaan Gümüş · 59eb78e
✨ feat(engine): video+audio lanes with offset-placed clips, gaps, .edith v2 Project gains two lanes; a Clip now carries `start` (its timeline placement) and `link` (group id), so a gap is simply the absence of a placement rather than an object anyone has to keep in sync. Moves and trims become arithmetic on start/in_frame; the lane invariant (sorted, non-overlapping) is checked in from_parts, at the .edith parser, and asserted after every mutation. split cuts every lane and hands the two sides fresh group ids; regroup is its exact inverse. delete still ripples both lanes (the app keeps its behaviour), lift removes one placement and leaves a hole, place is the per-lane overwrite that can make one. A video gap plays as black frames from a worker that opens no file -- same channel, backpressure, cancel and retire path as a decoder -- and exports as encoded black. An audio gap is synthesised zero chunks, real ones, so the master clock keeps counting through it; on the export side it is spent as stts duration on the packet beside it, since there is no AAC encoder to make silence with. .edith v2 writes one line per placement per lane; v1 files still load, as fully-grouped gapless lanes, and save as v2.
2026-08-09
✨ feat(engine): .veproj save/load — relocatable, validated, atomicAhmet Kaan Gümüş · ac60b80
✨ feat(engine): .veproj save/load — relocatable, validated, atomic A project file is line-based text: `veproj 1`, an optional playhead, one `source` line per file and one `clip` line per range. Text because a path is bytes on this platform and a JSON string could not carry one losslessly, so the path field is byte-escaped instead; paths under the project's own directory are written relative to it, which makes a folder of media plus its .veproj movable anywhere. The parser is strict and every refusal names its 1-based line, and writing goes through .part + rename as an export does. Loading is a new session, never a mutation of the old one: source 0 defines the timeline, every other source passes the same checks import applies (in the same words), and every clip has to still fit inside the file it plays from -- a source that vanished or shrank is a refusal that names it, not a silently shorter timeline. Sources no clip plays from are pruned at save, so an import that was undone cannot leave a file behind that blocks a future load.