Skip to content

Player: the paused-frame preroll plays muted (StarfishMediaAPIs::setVolume) - #762

Merged
GLinnik21 merged 4 commits into
mainfrom
fix/silent-paused-preroll
Oct 15, 2026
Merged

GLinnik21 merged 4 commits into
mainfrom
fix/silent-paused-preroll

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Problem

When the viewer is paused and the player needs a picture (a paused seek that reloads, or an audio-track switch while paused), the preroll plays for about 0.2–0.3 s until the video plane binds, then re-pauses (#722, #750, #759). That window is audible: there is a short audio blip while the viewer is paused.

Fix

Mute the pipeline for the preroll, using the per-pipeline StarfishMediaAPIs::setVolume (JSON {"volume":<n>}).

  • Binding. sf_set_volume and sf_get_volume are added in src/starfish.c, next to sf_play, as __asm__-named externs. libplayerAPIs is already linked for real, so DT_NEEDED does not change.
  • Firmware evidence. Both symbols are present on every inventoried release from 4.4.2 to 11.2.0, and the NDK header declares bool setVolume(const char*). setAudioMute was rejected because it is missing on 4.4.2 and 4.10.0. The system luna mute was rejected because it is global and shows the OSD.
  • Mute. try_prime reads back the current volume, saves it in Transport::preroll_volume, and sets 0 just before the preroll's Play. This happens only while a preroll is open.
  • Restore. The saved volume comes back in four places:
    • after the accepted re-pause in finish_paused_seek;
    • at the top of resume, before any Play;
    • in a per-tick sweep at the head of pump(), for closers like abandon_seek;
    • on stop, where the mute is forgotten along with the unloaded pipeline.
  • Logs. The TV can be checked from two lines: preroll: volume <prev> -> 0 (readback <n>) and preroll: volume restored <v> (readback <n>).

Tests

The four positive tests were watched red, then green. The fifth is a guard that passes before and after.

  • a paused preroll mutes before its Play and restores after its re-pause (dispatch order);
  • Resume during an open preroll restores the volume;
  • an abandoned preroll restores the volume on the next tick;
  • a stop forgets the mute along with its pipeline;
  • guard: an unpaused seek prime never sets the volume.

Verification

  • make check passes (test result: ok. 1792 passed; 0 failed; 60 ignored, plus the other crates).
  • --no-default-features is clean.
  • ARM make links.
  • fw-compat-reviewer reports no blocking findings.
  • TV: pending, see below.

🤖 Generated with Claude Code

GLinnik21 and others added 2 commits October 15, 2026 17:57
…ume 0, restored on re-pause/resume/sweep)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 marked this pull request as draft October 15, 2026 15:30
GLinnik21 and others added 2 commits October 15, 2026 18:34
…r's string); restore the preroll to the pipeline default

Crash on the TV: SIGSEGV in sf_get_volume, strstr handed 0x64. libplayerAPIs'
getVolume tail-calls the pipeline vtable slot 0xc8; libpf's AbstractPlayer/
CustomPipeline::getVolume return an int (default 100, -1 base). The mangled
name has no return type and only one firmware was decompiled, so no readback.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 marked this pull request as ready for review October 15, 2026 17:26
@GLinnik21
GLinnik21 merged commit 7441d65 into main Oct 15, 2026
17 checks passed
@GLinnik21
GLinnik21 deleted the fix/silent-paused-preroll branch October 15, 2026 17:27
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