Repository navigation
Offer to free the video decoder when Steam holds it - #94
Conversation
|
d3369f0 to
22680ca
Compare
|
/oc Please re-review the changes since the first review.
The refactor layers above (#96–#101) carry the same two changes where the code moved. |
|
Both findings from the first review are resolved in
Verified by tracing the playback and menu paths in code; I did not test on a headset. |
12fb77f to
3ca92f1
Compare
22680ca to
0c86ba5
Compare
On the Steam Frame, Steam's interface can keep sessions open on the hardware video decoder and never close them. An 8K HEVC video that needs the whole decoder then fails to start with "Can't play this video", and so far the only fix was restarting Steam or the headset.
Now, when the decoder refuses a video and Steam is holding it, the app asks whether to free it. Freeing it ends Steam's background process that holds the decoder, which Steam restarts by itself. The video then opens again where it was. Always free does that now and from then on without asking; Settings → Playback switches it off again.
The switch in Settings → Playback (Steam Frame only):
Before, the same case only showed:
flowchart LR A["Decoder refuses the video"] --> B{"Who holds it?<br/>(off the render thread)"} B -- "Steam's web helper" --> C["Ask: Cancel / Always free / Free and play<br/>(not asked once Always free)"] B -- "something else" --> E["Decoder busy:<br/>restart Steam or the headset"] B -- "nothing" --> F["Can't play this video"] C -- "Free" --> D["End the helper,<br/>wait until it lets go,<br/>reopen at the same position"] D -- "refused again" --> Esrc/decoder_holders.cppfinds this user's processes holding the decoder. Inside the Steam Runtime's container, other processes' open files can't be followed, so Steam's web helper is recognised by Chromium's V4L2 decoding thread instead. Freeing sendsSIGTERM. After 2 s it sendsSIGKILLonly to current decoder holders whose PIDs were in that first set.free_decoder_from_steaminsettings.conf(off by default).avpriv_open), so a process the app starts can't keep a decoder session alive.Known and left as is
Important
AI disclosure
anthropic/claude-opus-5-5highopenai/gpt-6.2-astrahighAgent harness OpenCode 2.3.2