Commits
2026-10-23
🚚 edith moves to git.tahinli.comAhmet Kaan Gümüş · b02f499
🚚 edith moves to git.tahinli.com The working tree as of 2026-10-23, as one commit on top of the last one here. It carries the work up to that date plus the test-slimming work: integration tests merged into one binary per crate, nextest config, doctest = false, debug line tables only, perf tests behind --ignored, and faster generators, reverse, undo, subtitle-export, hevc, stabilise and hear tests.
2026-09-30
fix(engine): the AV1 and hardware refusals report themselves tooAhmet Kaan Gümüş · 5dd4f36
fix(engine): the AV1 and hardware refusals report themselves too The class was not closed. `run` reported its decode and demux failures through `DecodeFailure`, but the two other decode loops did not: - `run_av1`'s software refusal printed "software AV1 decode failed at frame N" to stderr and set nothing -- the exact shape the H.264 witness reproduces, in a different loop and out of a different decoder. - `run_hw` never took the parameter at all; its mid-stream `Err` arm printed "hardware decode error at frame N" and returned. Both now set the same cell `run_span` already holds, keeping the stderr line for logs exactly as the other arms do. `run_hw` deliberately does NOT report the failure before its first picture: that `return false` is the signal that software should take over, the caller reports the fallback, and saying it there as well would put a fault on the strip for a span that is about to decode cleanly. `decode_failure.rs` loses its container-agnostic damage helper and the AV1 case. The helper only ever knew how to damage an mp4's mdat payload; every attempt to reach the AV1 arm through a Matroska fixture failed before a single frame decoded (a zeroed span breaks the EBML chain and the file will not open at all -- "bad EBML variable-length integer" -- and an EBML walk to zero only block payloads did not find blocks in the time available). Leaving a half-working fixture builder in a test is worse than naming the gap, so both are gone and the gap is in the report. Gates: cargo check -p engine --all-targets 0/0; decode_failure 2/2; exif_orientation 5/5; images 8/8.
fix(engine): a decode failure says why it stoppedAhmet Kaan Gümüş · 2052c96
fix(engine): a decode failure says why it stopped A decode worker that ran to the end of a file and one that gave up on a corrupt packet both drop the sender, and `try_frame` returns `None` for either. The app read that as end-of-stream, so a file with a damaged middle froze on its last good picture and the transport said ENDED -- no notice, no banner, and nothing on screen to say the film had stopped being the film. The only trace was an `eprintln!` on a decode worker, which is where a person standing at a terminal is and not where a person sitting at the window is. `DecodeFailure` is the reason channel the sound path has had for a device that dies mid-session, for the picture side: one cell per worker, handed to every span that worker decodes, because a reseek reuses the thread and a failure has to outlive the span that set it. Every `eprintln!` on the decode and demux error paths now goes through it, so the stderr line is still there for a log and the reason is also somewhere a window can read it. `PlaybackSession::video_failure_reason` is that reader, the video twin of `audio_disabled_reason`. The distinction the audio path already keeps is kept: a span that played its whole range sets nothing. A reason channel that fires on every film is a channel nobody reads, and there is a test that says so. A span clears the reason when it starts, because a span is a fresh question -- but only a span that is actually going to run, so a span superseded on its way through the queue cannot erase a failure that has not been reported yet. Witness (crates/engine/tests/decode_failure.rs, 2 tests): test_av.mp4 with the last eighth of its *mdat payload* zeroed and its `moov` intact, which is what a transfer that dies part-way leaves behind. Red on the base: 130 frames, `decode error at access unit 130` on stderr, and then `is_eos() == true` -- the transport reading a broken file as a finished one, with no reason anywhere. Green after: the same 130 frames, and the reason readable. The control, an undamaged file played to its end, reports `None` on both.