Skip to content

[v0.10] Seek: land a Segment seek on the clock alone when the session sends no displayed-frame counter - #1446

Merged
GLinnik21 merged 1 commit into
release/v0.10from
backport/1437-to-v0.10
Nov 17, 2026
Merged

GLinnik21 merged 1 commit into
release/v0.10from
backport/1437-to-v0.10

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport of #1437 to release/v0.10: git cherry-pick -x b71b0e5c41fd.

…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)
@GLinnik21
GLinnik21 merged commit c3def25 into release/v0.10 Nov 17, 2026
22 checks passed
@GLinnik21
GLinnik21 deleted the backport/1437-to-v0.10 branch November 17, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant