Skip to content

fix(display): a master refused while the display is ineligible for HDR does not latch (AE#535) - #612

Merged
superuser404notfound merged 1 commit into
mainfrom
fix/535-refusal-latch-needs-eligibility
Sep 23, 2026
Merged

superuser404notfound merged 1 commit into
mainfrom
fix/535-refusal-latch-needs-eligibility

Conversation

@superuser404notfound

Copy link
Copy Markdown
Owner

Refs #535 (§5 of cmcpherson274's 2026-09-23 comment).

What: panelRefusedHDRMaster is only set when AVPlayer.eligibleForHDRPlayback reads true at the moment of the display rejection. A refusal taken while the display is ineligible still earns the item its media fallback, but does not latch for the process, and logs AE#535 HDR master refused (code=…) while the display reads hdrEligible=no; this item falls back, the process does not latch the refusal.

Why: an audio route death after a display mode switch opens a window with matching=off hdrEligible=no. A #460 session-preserving reload landing there got -11868 and latched the whole process to media-direct. Two of the three latched processes never backgrounded, so the AE#588 foreground clear never ran. The AE#588 doc comment already assumed the latch could only be set while eligible; that premise is now enforced instead of assumed.

Tests: Issue535RefusalNeedsEligibilityTests (policy plus a site scan that the gate precedes the latch). Full suite: 3363 swift-testing + 17 XCTest, green.

🤖 Generated with Claude Code

https://claude.ai/code/session_014AVNwe8YDG9EQM7uHdjT3f

…R does not latch (AE#535)

An audio route death right after a display mode switch opens a window in which
the criteria readout reads matching=off hdrEligible=no. A session-preserving
reload that lands in it gets -11868 from AVPlayer, which is explained by the
window and says nothing about whether the output configuration accepts an HDR
master. The engine latched it anyway, so every later HDR title in the session
went media-direct, and in a process that never backgrounds the AE#588 clear
never came. Measured by cmcpherson274 on an Apple TV 4K (tvOS 26.6): three of
four such reloads latched, two in processes that never backgrounded.

The latch now also needs AVPlayer.eligibleForHDRPlayback to read true at the
refusal. The item still takes its media fallback either way, and the refusal
that is not latched says so in the log. This also makes the premise the AE#588
doc comment already stated ("the latch can only be set while eligible") true.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014AVNwe8YDG9EQM7uHdjT3f
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