Repository navigation
player: the pump owns a seek made while paused, on every seek route - #722
Merged
Merged
Conversation
…tchdog ignores a shut feed gate A bare request_seek while TX.paused armed a seek whose keyframe could never be fed (feed_allowed needs the paused-seek preroll), so the watchdog retried and reloaded into the same shut gate. The pump now opens the preroll at the arm and closes it on the landing; commit_seek collapses to a bare seek, and the watchdog re-bases while the gate is shut. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…load, transcode landing, refused re-pause, Pause mid-seek) Red on 0855801: the preroll is opened only at the in-place arm and owned by the Engine. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… every seek route and closed on the landing of whichever Engine is live Ownership moves off Engine into Transport (survives reload_at / the stuck watchdog's reload / a refused native Seek). The pump opens the preroll for the in-place arm, Reload mode, every reload fallback and a transcode flight's landing under a viewer Pause, and for a Pause pressed mid-seek (handing the clock hold back to the seek prime). settle_paused_seek re-pauses on the landing and retries a refused re-pause; only finish_seek_preroll clears the ownership. Doc comments and the player guide follow. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ed and in flight; two consecutive paused Reload seeks pinned Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…e doc names settle_paused_seek Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #713 (#568, already closed by it). This is a structural fix with no open issue behind it: the media layer now owns a seek made while the viewer is paused, on every seek route. It no longer depends on each app-side caller opening the paused-seek window itself.
Why
While investigating #568 we found that an in-place seek could be armed while the viewer was paused, in a state where it could never land. The pump's feed gate (
TX.feed_allowed()) stays shut under a viewer Pause unless a caller has opened the seek preroll, and onlyapp::playback::commit_seekand the foreground restore did. Any barerequest_seekmade while paused (the devautoseektrigger is one) fed nothing, tripped the stuck watchdog and then reloaded into the same shut gate. Real users' scrubs went throughcommit_seek, so they were not affected. Still, the media layer should not have depended on that.What changes
Transport::seek_preroll_owned, next toseek_prerollinshared.rs. Because it sits outside the per-sessionEngine, it survivesreload_at, the watchdog's reload and a refused nativeSeek.own_seek_under_pause) for whichever route it dispatches while the viewer is paused:Seekon webOS 5+);settle_paused_seekre-pauses once the live engine has presented the new frame. If the re-pause fails it keeps ownership and retries on the next tick.hand_hold_to_seek_primelets the prime Play through the viewer's clock hold.app::playback::commit_seekis now a barerequest_seek.repause_at/resume_pendand the app-sidebegin_paused_seekare gone from the scrub path. The foreground-restore ritual keeps its own handling.ff.rs:ff: open ms=,ff: seek begin,ff: seek … ms=andff: seek_cb reopen off= ok= ms=. They separate a slow server from a shut gate.player/CLAUDE.md, thecommit_scrubdoc, the HUD test doc and thelifecycle.rsdoc are updated to match.Tests (each failed on the earlier commit first)
native_seek_pump_tests(hostsim) adds:Seekthat is refused, falls back to a reload and ends paused;request_seekthat the dispatcher owns rather than the mid-seek branch;Verification
make checkpassed;--no-default-featuresand the ARM build are clean. Hostsimplx_medialib:test result: ok. 1597 passed; 0 failed; 19 ignored.Seekmode:Seek(100000) -> 1, thenpaused frame restored;posholds at 99 s and 59 s, and it climbs only after Resume.reload_at: fresh Load at 100s/60s, thenpaused frame restored; the position holds until Resume.Seek(...) -> 1landings, and the position climbs to 246 s.in-place stuck, no watchdog reload and noDOWNGRADEin any run.ff: seektook 9–84 ms.ff: open ms=6615). That seek still landed and stayed paused.🤖 Generated with Claude Code