Skip to content

Enhancement: keep Boost available after picking an undrawable subtitle mid-play - #808

Merged
GLinnik21 merged 10 commits into
mainfrom
fix/enh-sidecar-burn
Oct 16, 2026
Merged

GLinnik21 merged 10 commits into
mainfrom
fix/enh-sidecar-burn

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Closes 807

Stacked on #796; review and merge it after #796.

Problem

During playback, picking a subtitle the client can't draw (an external image subtitle such as .sup / .idx, or any pick with no demuxer ordinal and no sidecar key) made retarget_subtitle return false. The Original candidate was dropped, so Boost dialog / Normalize loudness stayed disabled for the rest of the playback.

Change

  • retarget_subtitle no longer fails. An undrawable pick keeps the candidate with subtitle_ordinal = None, so the live offer is EnhancementRoute::Burn: the server burns the subtitle in while it converts the sound.
  • Image sidecars read as Embedded. sidecar_drawn_by_client gates subtitle_effect_of and live_is_original_burn, so the app never tries to draw a subtitle it can't render.
  • Release and recovery check what the candidate will show. One predicate, candidate_shows_selected_subtitle (no subtitle, or the candidate has an ordinal, or the client draws the sidecar), gates both paths:
    • Releasing the enhancement goes back to direct play only when the predicate holds; otherwise it keeps a plain burn.
    • plan_original_recovery (Auto recovery and manual Original) burns the subtitle instead of restoring a direct play that would silently drop it.
  • Unchanged: plain Original with no enhancement behaves exactly as before. A cold-start M7 Burn with an embedded subtitle still releases to direct play with the subtitle restored.

This is not the fix for the embedded-ASS case in #794. Embedded picks already kept the candidate, as a control test confirms.

Verification

  • Repro first. The ignored repro failed until the fix. Review regressions were written first and seen failing (FAILED. 190 passed; 4 failed).
  • Host tests:
    • plx_media: T=enh 194/0, T=subtitle 115/0, T=retarget 2/0, T=route 671/0, T=recovery 62/0
    • plx_appkit: T=enh 58/0
    • hostsim lifecycle_regression player_return: 64/0
  • Build: cargo check --lib --no-default-features is clean.
  • Review: one Opus review. Its two HIGH findings (the release gate keyed on cur_sub_client_drawable, and a test helper that masked it) and the MEDIUM recovery drop are all fixed in f189c9e77.
  • Not run: the full make check (left to CI) and the TV. The recovery tests set the HLS subtitle state by hand.

🤖 Generated with Claude Code

GLinnik21 and others added 8 commits October 16, 2026 00:08
… Quality: Original

The Audio popover's disabled Boost dialog / Normalize loudness rows blamed the quality for every
missing Original candidate. Record why no candidate exists (OriginalDeclined), carry the quality in
force in EnhancementFacts, and keep NotOriginalQuality for a quality that is not Original. New
reasons: ForcedDirectPlay (names the setting) and NotCopyable. Resolve behaviour is unchanged; a
decline log line names the cause.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…rver converts

Row value is '{choice} · {playing}' (UX board verdict): Original, 'Original · Converted', 'Auto ·
Original', 'Auto · 720p', fixed rung by short name; the choice alone while the stream is unsettled.
The checked entry gets a neutral sub-line for a conversion the viewer did not pick by name. The
Audio note reads the same fact (ServerConverting).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ording, plain Plex server notes

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…; Belarusian 'right now' wording

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ndidate (ignored)

Control test (embedded pick keeps Burn) passes; the repro is #[ignore]d.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ps the Original candidate so Burn is offered

retarget_subtitle no longer drops the candidate for a non-drawable pick (image sidecar, no
ordinal and no sidecar key); it is stored as ordinal None. subtitle_effect_of and
live_is_original_burn read such a pick as Embedded, and enhancement_step never releases to a
direct play while a subtitle the client cannot draw is selected.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… shows

Release to direct and Original recovery now key on candidate_shows_selected_subtitle (no
subtitle, a candidate render ordinal, or a client-drawn sidecar) instead of cur_sub_client_drawable,
which a cold-start burn records as false for a drawable track. A recovery that would drop a
subtitle only a burn can show lands on the Original burn. install() no longer overrides the
drawable flag; parity claims in docs and test names corrected.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Base automatically changed from fix/enh-reason-not-quality to main October 16, 2026 00:03
@GLinnik21
GLinnik21 marked this pull request as ready for review October 16, 2026 00:16
@GLinnik21
GLinnik21 merged commit 4409594 into main Oct 16, 2026
18 checks passed
@GLinnik21
GLinnik21 deleted the fix/enh-sidecar-burn branch October 16, 2026 00:17
GLinnik21 added a commit that referenced this pull request Oct 22, 2026
* Release notes and audit for v0.9.0

Action-required evaluation (README trigger list, read from the PRs, grep not run on a built tree): no hits that need a reader action. Launch links (#853) add an inbound surface (any app that can launch apps), stated in What's new; the 3.4 image cache writes to /media/developer/temp (#667); crash/error reports gain fixed-value fields with POLICY_VERSION unchanged (#632), stated under Changed; Watchlist and PMS notifications use hosts the app already reaches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Release notes v0.9.0: coverage and accuracy pass

Note: correct the Collections surfaces (no TYPE menu; collection shelf
headings live on Home and a library's Recommended page), the Watchlist
hold-menu rows, the launch-link sign-in behaviour and platform-release
numbering, the notification-feed sentence and the per-profile settings
list (no stale "nine"). Add #832, #808, #750/#762, #709 (#628), #641,
#647, #793, #871, #877 (#679), #876 and the key-press frame work;
credit RichiL10 and Shakil Choudhury. #862 moves from Known issues to
the webOS 3.x lines as fixed by #578; the 3.9.3 source-build report
(#700) is kept in Compatibility. Compatibility links reports, not
reporters' profiles.

Audit: #862 provenance (attributed usage-report reading, no counts),
contributor list wording.

Action-required section: not owed. The README grep over
v0.8.0..origin/main (rust-modules/src src ci) hits only CI tooling,
test-only loopback listeners and fixture tokens, and the dev-only
/tmp/plxnative-trackmemory trigger; the audit's PR-by-PR reading in
"Deliberately not done" stands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Release audit v0.9.0: name the toolchain by its pin file, not its version

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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