Repository navigation
[v0.10] Seek: land a Segment seek on the clock alone when the session sends no displayed-frame counter - #1446
Merged
Merged
Conversation
…o displayed-frame counter (#1437) On a set that sends no displayed-frame counter (an LG OLED C8 on webOS 4.4.3 sends no callback numbered 46-49), every in-place seek played about 4 s and then reloaded at its target. #1313's Segment landing check in stuck_seek_due waits for the clock to advance, the position to sit on the accepted video and a fresh positive displayed count since Play. Without the counter the last never comes, SEGMENT_PRESENTATION_MS runs out on a seek that is already playing, and retry_stuck_seek reloads. The landing rule is now LandingFacts: a fresh count is required only when the session has received a displayed-frame callback. That fact is a new decision flag, Shared::sink_counter_seen, set by note_displayed_frames on every counter callback (a zero count too) and cleared per session by reset_session_mirrors; the ACB bind leaves it. It is read at poll time, so a counter that first speaks after Play makes that seek need a fresh count again. Sets that send the counter keep #1313's rule. When the presentation deadline fires, one event-log line names the missing check (clock_advanced, position and runway, displayed, counter_present). docs/webos5-port.md §5a rows 5 and 7 say what the code does, and the dg_ mirrors' one-way note names #1313's existing dg_pos_ticks exception. Tests: a Segment seek with no counter in the session lands on the clock and runway (red on main); a session that sends the counter still needs a fresh count; a counter that first speaks after Play keeps the seek pending until a positive count; the deadline line is written once; the rule over its facts; the flag is per session, counts a zero and survives the bind. Diagnosis, patch and TV verification by the reporter, robozdog; this change has no device run of its own. Closes #1436 Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit b71b0e5)
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.
Backport of #1437 to
release/v0.10:git cherry-pick -x b71b0e5c41fd.