Repository navigation
Player: a paused seek or reload re-pauses only once the video plane shows the frame - #759
Merged
Merged
Conversation
…eo plane is bound The landing re-paused at the first FRAMEREADY position tick, below Stage::Streaming: setMediaVideoData + acb_start never ran, acb_mirror_playstate did nothing, and the panel stayed black until Resume. The landing now needs the bind plus one tick after it; an open preroll binds at the first tick instead of the second; an acb_start under a really-paused pipeline is followed by the ACB pause. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
Problem
#722 and #750 show one frame while paused: after a paused seek that reloads the stream, and after an audio-track switch while paused. On the TV that frame never reached the panel. The log said
seek: paused frame restored, but a VIDEO-only capture read "no signal state" and the screen stayed black until Resume.Cause
SHARED.frames >= 1.framescounts Starfish FRAMEREADY position ticks (~5 Hz), not displayed frames.setMediaVideoData, thenacb_start(setDisplayWindow+ PLAYING). That bind was gated onframes >= 2.Streaming.Fix (pump.rs, Rust call ordering only — no FFI change)
Streaming) and one tick after the bind.pause()then mirrors ACB PAUSED.acb_startruns while the viewer is paused and no preroll is open, the ACB pause follows.Tests
Watched red on main, green after:
Guard, green both ways: a normal ACB start still waits for the second tick.
Verification
make check:test result: ok. 1781 passed; 0 failed; 60 ignoredandtest result: ok. 1638 passed; 0 failed; 60 ignored(other crates ok).--no-default-featurescheck is clean.paused frame restored, the position stays put while paused, and Resume plays on.Known trade-off: the preroll plays for about 0.2–0.3 s (+208 to +292 ms of position) with audio before it re-pauses. The player has no mute for that window. Before this change the window was similar, but no picture appeared.
🤖 Generated with Claude Code