Repository navigation
webOS 3.x follow-up: gate in-place seek on the Feed ABI, guard the COW reply destructor - #581
Merged
Merged
Conversation
…W reply destructor - starfish.c: correct the Feed mangling comment (3.9.2 is still the COW ABI; cxx11 starts with the 4.x inventories); track the resolved ABI in g_feed_cow instead of inferring it from the destructor pointer, so the `feed abi:` line says cow even without _ZNSsD1Ev. - sf_feed: run the reply destructor only for a non-NULL reply pointer. - New sf_feed_abi_is_cow() accessor, bound through VideoSink::feed_abi_is_cow (ffi.rs, ffi_host.rs stub, NoSink). - engine.rs: inplace_layout_known(major, feed_abi_is_cow) is the in-place seek gate: the old-ABI Feed refuses it (covers 3.9.x), a known release below 4 too, an unknown release with the C++11 Feed keeps it. Unit test added. - fw-compat-reviewer.md: the oldest images no longer fail on the two symbols #578 made runtime lookups; re-run the matrix for what they print. Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21
pushed a commit
that referenced
this pull request
Oct 25, 2026
On webOS 3.x every direct-play seek was a full reload: the old C++ ABI rules out the private `Segment` offsets (#578, #581), and the public `Seek` had never been tried on that ABI. `Seek` (`_ZN17StarfishMediaAPIs4SeekEPKc`) takes a `const char*`, so its symbol and calling convention are the same on the COW and cxx11 ABIs, and on a 3.9.3 set (OLED55B7V-Z) it works: 80 seeks through it all returned 1, with no downgrade, stuck-seek retry, reload, BufferFull or "Playing error", and playback ran 101-197 s past single seeks, beyond the ~48 s where a wrongly anchored segment would stall. - `select_seek_mode` picks `NativeSeek` for an old-ABI library on the ACB plane when the set reports release 3 (`old_abi_seek_tested`, `major == 3`). Every other mode is unchanged: webOS 5+ `NativeSeek`, known-layout 4.x `Segment`, other unknown-layout releases and `VP_NONE` `Reload`. - The nets webOS 5+ already has apply: a refused `Seek` drops the playback to `Reload` (`native_seek_refused`), and a seek that does not anchor within `SEEK_STUCK_MS` is retried, then reloaded. A seek at a speed other than 1x still reloads in every mode. - `each_firmware_gets_its_seek_mode` covers every row; a new test checks that a refused `Seek` on webOS 3 stays on `Reload` across the reload and that a fresh play clears it. - Docs: the `SeekMode`/`select_seek_mode` comments, the player's CLAUDE.md, the README's webOS 3.x row and `docs/webos5-port.md`'s "The public `Seek`". Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Follow-up to #578, from its review. Nothing here changes behaviour on a set that already worked.
What changed
engine.rs): the rule is now a pure function,inplace_layout_known(major, feed_abi_is_cow), with a unit test. The old-ABIFeedis the primary evidence thatlibplayerAPIsis the pre-C++11 build whoseStarfishMediaAPIslayout differs from the 4.5 one the offsets were decompiled from, so it refuses in-place seek and covers 3.9.x without listing releases. A known release below 4 is refused as well. An unknown release (os_info.jsonunreadable) with the C++11Feedkeeps in-place seek, as it did before webOS 3.4: resolve the two missing imports at runtime, and seek by reload on 3.x #578; webOS 3.4: resolve the two missing imports at runtime, and seek by reload on 3.x #578 had moved those sets to reload.sf_feed_abi_is_cow()(src/starfish.c,starfish.h), reached through a newVideoSink::feed_abi_is_cow. It is our own C function, so the binary gains no import.feed abi:log line: sayscowwhenever the old name resolved, even if_ZNSsD1Evdid not (it used to saycxx11there).cow … dtor=(nil)now reads as what it is: every reply leaks.Feedcomment said the C++11 mangling starts at 3.9.2; 3.9.2 is still the old ABI.fw-compat-reviewer.md: no longer says the five oldest images fail permanently on two symbols that webOS 3.4: resolve the two missing imports at runtime, and seek by reload on 3.x #578 turned into runtime lookups.Verification
make checkon the committed tree: everytest result:line ok, 0 failed (media crate:1188 passed; 0 failed), layer and static gates green.test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1113 filtered out.cargo +nightly check --lib --no-default-features: clean.nm -D pkg/plxnativeshows noFeed,SDL_webOSCursorVisibilityor_ZNSsD1Evimport.pipe_seek_inplaceandpipe_seek_mp4both PASS 9/9 (2 passed, 0 failed of 2); the log readsfeed abi: cxx11 … dtor=(nil)andin-place seek: … sendSegment=1, and the crash log has no record.The old-ABI path itself cannot be exercised on the 4.x dev set.
🤖 Generated with Claude Code