Repository navigation
fix(display): a master refused while the display is ineligible for HDR does not latch (AE#535) - #612
Merged
superuser404notfound merged 1 commit intoSep 23, 2026
Conversation
…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
superuser404notfound
deleted the
fix/535-refusal-latch-needs-eligibility
branch
September 23, 2026 10:13
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.
Refs #535 (§5 of cmcpherson274's 2026-09-23 comment).
What:
panelRefusedHDRMasteris only set whenAVPlayer.eligibleForHDRPlaybackreads 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 logsAE#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-11868and 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