app: cherry-pick rune's pause and sound fixes onto the checkout

Rune comes from app/vendor/rune now, a checkout of 63ad0209 on branch
ported, carrying the four commits of upstream issues 1320 (a pause while
a clip is layered holds the layer's picture and time) and 1325 (a video's
sound is read ahead of the clock and leads it). Both were written against
eb9f1104 and ported across the refactors since. The faults are the first
two and the third in docs/rune-upstream.md; the app's workarounds in
review.rs stay until the fixes arrive upstream.
This commit is contained in:
vhaudiquet committed 2026-11-22 22:16:30 +01:00
1 parent 80fef698ce
commit 5bf262b82b
3795 files changed
+663463 -28

No files matched your search

+17 -6
View File
@@ -1,13 +1,8 @@
# Rune fixes this app waits on
# Rune fixes this app waits on (the first two are cherry-picked, see the note at the end)
Three faults live in rune, not here. Each one names the file, what happens, and how to check the
fix. The app carries a workaround for the second and third.
The pin in `app/Cargo.toml` is `4ddf696`. Updating to `main` (`db7c080`) does not fix any of
them: `crates/rune/src/video` and `crates/rune/src/window/video_layer.rs` are identical between
the two revisions, and `main` does not build on Windows here because its windows-sys 0.61
migration is unfinished (`Win32::Foundation::BOOL` now lives in `windows_sys::core`).
## 1. A paused clip draws nothing
`window/video_layer.rs` takes a clip off its compositor layer as soon as it is not running, and
@@ -46,3 +41,19 @@ and plays silent.
The app works around it in `app/src/screens/review.rs` with a second, audio-only player over the
same file, kept in step by `keep_in_step`.
## Cherry-picks on the vendored checkout
Rune comes from `app/vendor/rune`, a checkout of `63ad0209` on branch `ported`, carrying two
fixes cherry-picked from the upstream issues (both written against `eb9f1104` and ported across
the refactors that landed since):
- #1320, two commits: a pause while a clip is layered holds the layer's newest picture and
takes the pause's time from it, and the surface gets that picture when the window draws the
clip again. This fixes faults 1 and 2 above.
- #1325, two commits: a video's sound is read ahead of the clock on a reader of its own, and
the sound leads the clock from the device's own position. This fixes fault 3 above.
`app/Cargo.toml` points `rune`, `rune-kit` and `rune-notify` at the checkout's crates by path.
To take a newer upstream rev: fetch in `app/vendor/rune`, rebase or re-apply the four commits
of `ported` on the new rev, and drop the workarounds below once the fixes arrive upstream.